转载:spring ,struct2 在 web.xml中的配置

转载网址:http://blog.sina.com.cn/s/blog_4c6e822d0102dv63.html

<!-- Struts2 need begin-->
  <filter>
   <filter-name>struts2</filter-name>
   <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
  </filter>
  <filter-mapping>
   <filter-name>struts2</filter-name>
   <url-pattern>/*</url-pattern>
  </filter-mapping>
  <!-- Struts2 need end-->
 
  <!-- Spring need begin -->
  <listener>
   <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>
  <context-param>
   <param-name>contextConfigLocation</param-name>
   <param-value>/WEB-INF/applicationContext-core.xml</param-value>
  </context-param>
  <!-- Spring need end -->

原文地址:https://www.cnblogs.com/lraa/p/3544382.html