123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <?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"
- version="2.5">
-
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>
- classpath:spring/ApplicationContext-main.xml,
- classpath:spring/ApplicationContext-dataSource.xml,
- classpath:spring/ApplicationContext-shiro.xml,
- classpath:spring/ApplicationContext-redis.xml,
- classpath:spring/ApplicationContext-activiti.xml
- </param-value>
- </context-param>
- <filter>
- <filter-name>encodingFilter</filter-name>
- <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
- <init-param>
- <param-name>encoding</param-name>
- <param-value>utf-8</param-value>
- </init-param>
- </filter>
- <filter-mapping>
- <filter-name>encodingFilter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <context-param>
- <param-name>webAppRootKey</param-name>
- <param-value>zhdt</param-value>
- </context-param>
- <!-- 连接池 启用Web监控统计功能 start-->
- <filter>
- <filter-name>DruidWebStatFilter</filter-name>
- <filter-class>com.alibaba.druid.support.http.WebStatFilter</filter-class>
- <init-param>
- <param-name>exclusions</param-name>
- <param-value>*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*</param-value>
- </init-param>
- </filter>
- <filter-mapping>
- <filter-name>DruidWebStatFilter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <servlet>
- <servlet-name>DruidStatView</servlet-name>
- <servlet-class>com.alibaba.druid.support.http.StatViewServlet</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>DruidStatView</servlet-name>
- <url-pattern>/druid/*</url-pattern>
- </servlet-mapping>
- <!-- 连接池 启用Web监控统计功能 end-->
- <filter>
- <filter-name>loginFilter</filter-name>
- <filter-class>com.zhcs.dt.filter.LoginFilter</filter-class>
- </filter>
- <!-- log4j2-begin -->
- <listener>
- <listener-class>org.apache.logging.log4j.web.Log4jServletContextListener</listener-class>
- </listener>
- <filter>
- <filter-name>log4jServletFilter</filter-name>
- <filter-class>org.apache.logging.log4j.web.Log4jServletFilter</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>log4jServletFilter</filter-name>
- <url-pattern>/*</url-pattern>
- <dispatcher>REQUEST</dispatcher>
- <dispatcher>FORWARD</dispatcher>
- <dispatcher>INCLUDE</dispatcher>
- <dispatcher>ERROR</dispatcher>
- </filter-mapping>
- <!-- log4j2-end -->
-
- <listener>
- <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
- </listener>
-
- <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/ApplicationContext-mvc.xml</param-value>
- </init-param>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>springMvc</servlet-name>
- <url-pattern>/</url-pattern>
- </servlet-mapping>
-
- <!-- Shiro filter start -->
- <filter>
- <filter-name>shiroFilter</filter-name>
- <filter-class>
- org.springframework.web.filter.DelegatingFilterProxy
- </filter-class>
- <init-param>
- <param-name>targetFilterLifecycle</param-name>
- <param-value>true</param-value>
- </init-param>
- </filter>
- <filter-mapping>
- <filter-name>shiroFilter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <!-- Shiro filter end -->
-
- <error-page>
- <error-code>404</error-code>
- <location>/404.jsp</location>
- </error-page>
-
- <!--
- <error-page>
- <error-code>405</error-code>
- <location>/WEB-INF/405.html</location>
- </error-page>
- <error-page>
- <error-code>404</error-code>
- <location>/WEB-INF/404.html</location>
- </error-page>
- <error-page>
- <error-code>500</error-code>
- <location>/WEB-INF/500.html</location>
- </error-page>
- <error-page>
- <error-code>javax.servle.ServletException</error-code>
- <location>/WEB-INF/error.html</location>
- </error-page>
- <error-page>
- <error-code>java.lang.NullPointerException</error-code>
- <location>/WEB-INF/error.html</location>
- </error-page>
- -->
- <session-config>
- <session-timeout>14400</session-timeout>
- </session-config>
- </web-app>
|