<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>test_ssm_1705_1</display-name>
<welcome-file-list>
<welcome-file>page/front/index.jsp</welcome-file>
</welcome-file-list>
<!-- 设置日志跟路径监听器 -->
<listener>
<listener-class>com.cdsxt.listener.SetLogBasePathListener</listener-class>
</listener>
<!-- spring mvc 入口 -->
<servlet>
<servlet-name>springmvc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:spring-mvc.xml,
classpath:spring-app.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>springmvc</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- 请求日志的记录过滤器 -->
<filter>
<display-name>ReqLogingFilter</display-name>
<filter-name>ReqLogingFilter</filter-name>
<filter-class>com.cdsxt.filter.ReqLogingFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ReqLogingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>test_ssm_1705_1</display-name>
<welcome-file-list>
<welcome-file>page/front/index.jsp</welcome-file>
</welcome-file-list>
<!-- 设置日志跟路径监听器 -->
<listener>
<listener-class>com.cdsxt.listener.SetLogBasePathListener</listener-class>
</listener>
<!-- spring mvc 入口 -->
<servlet>
<servlet-name>springmvc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:spring-mvc.xml,
classpath:spring-app.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>springmvc</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- 请求日志的记录过滤器 -->
<filter>
<display-name>ReqLogingFilter</display-name>
<filter-name>ReqLogingFilter</filter-name>
<filter-class>com.cdsxt.filter.ReqLogingFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ReqLogingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>