<!--****** 加载struts2 ******************************************************************************************-->
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!--****** 加载spring *************************************************************************************************-->
<context-param>
<param-name>contextConfigLocation</param-name>
<!--注意:applicationContext*.xml文件在src下,包括dao、service、action、base等全部文件-->
<param-value>classpath*:applicationContext*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>