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

posted @ 2014-09-27 18:45  Jason_Msbaby  阅读(108)  评论(0编辑  收藏  举报