转载: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 -->

posted @ 2014-02-11 14:47  lraa  阅读(454)  评论(0编辑  收藏  举报