1.严重: Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
解答:web.xml文件配置里,org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter后面不要加.class
<filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter>
2.无法修改struts2 default.properties
解答:需要自己写一个放到src下。命名为struts.properties