struts2集成spring
1.在web.xml中加入以下配置 该配置可以在spring手册15.2章中找到
<!-- 配置spring的用于容器初始化的监听对象 -->
<listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext*.xml</param-value> </context-param>
2.加入struts2-spring-plugin-2.3.16.1.jar