我使用的是最新的struts2.1.8,新建一个工程,新建一个User Lib,导入struts-2.1.8.1\lib下的所有的包,我想这样不会报缺包吧,but!!!!!!
启动报错:
严重: ********** FATAL ERROR STARTING UP STRUTS-SPRING INTEGRATION **********
Looks like the Spring listener was not configured for your web app! Nothing will work until WebApplicationContextUtils returns a valid ApplicationContext. You might need to add the following to web.xml: <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener>
google,一看原来是里面的struts*-plugin.jar包有冲突,去掉,restart,可以了!!