核心提示:tomcat启动时报错:struts2 - java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.Stru...
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 /*