站内搜索:
首页 >> 前端 >> 内容
struts2-java.lang.ClassNotFoundException:org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAnd报错问

时间:2018/6/9 15:18:55

tomcat启动时报错:

struts2 - java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAnd

原因: struts版本不同,web.xml的配置可能也不同

举例:

struts-2.3.14版本对应的配置


        struts2
        org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter


    
        struts2
        /*
    

struts-2.5.16版本对应的配置

 


        struts
        org.apache.struts2.dispatcher.FilterDispatcher
    


        struts
        /*
    

  • 上一篇:Bootstrap4代码部署后台管理界面实例
  • 下一篇:ES6箭头函数中的this绑定问题代码实例分析
  • 返回顶部