环境Linux/Ubuntu20.04LTSIntelliJIDEACommunityEditon2021.1maven3.6.3jetty11.0.5struts22.5.14.1Exception[警告]无法加载类org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterjava.lang.ClassNotExcheaption:FoundExcheaption:Foundstruts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter使用mvnjetty:run插件运行web应用,出现异常!原因web.xml的版本访问点类struts2version2.2是org.apache.struts2.dispatcher.FilterDispatcherStruts2version2.3是org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter在Struts2version2.5是org.apache.struts2.dispatcher.FilterDispatcher程序直接修改配置web.xml文件,如果你使用的是struts22.5版本,你需要将org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter改为org.apache.struts2.dispatcher.filter。StrutsPrepareAndExecuteFilter
