web.xml
来源:互联网 发布:exsi虚拟机linux网络 编辑:程序博客网 时间:2024/06/05 11:00
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>votesystem</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:spring-mybatis.xml;
classpath:spring-common.xml;
classpath:spring-security.xml;
classpath:application-*.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>
<filter>
<filter-name>ExceptionFilter</filter-name>
<filter-class>samsung.sds.system.common.filter.ExceptionFilter</filter-class>
<init-param>
<param-name>exceptionPage</param-name>
<param-value>/WEB-INF/jsp/common/exception.jsp</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ExceptionFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- add the sitemesh framework -->
<filter>
<filter-name>sitemesh</filter-name>
<filter-class>org.sitemesh.config.ConfigurableSiteMeshFilter</filter-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:sitemesh3.xml
</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>balckListFilter</filter-name>
<filter-class>samsung.sds.systemMonitor.userOperationMonitor.filter.IpFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>balckListFilter</filter-name>
<url-pattern>/login.do</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>samsung.sds.systemMonitor.userOperationMonitor.service.impl.SessionListener</listener-class>
</listener>
<!-- 防止spring内存溢出监听器 -->
<listener>
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
</listener>
<!-- 在controller中以autowire方式获取 request -->
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<servlet>
<servlet-name>spring</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:spring-mvc.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>spring</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- <servlet> <servlet-name>DisplayChart</servlet-name> <servlet-class>samsung.sds.vote.controller.DisplayChart</servlet-class>
</servlet> <servlet-mapping> <servlet-name>DisplayChart</servlet-name> <url-pattern>/chart</url-pattern>
</servlet-mapping> -->
<filter>
<filter-name>sessionFilter</filter-name>
<filter-class>samsung.sds.system.common.filter.SessionFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>sessionFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<error-page>
<error-code>404</error-code>
<location>/WEB-INF/jsp/common/404.jsp</location>
</error-page>
<!-- 配置session超时时间,单位分钟 -->
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.do</welcome-file>
</welcome-file-list>
</web-app>
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>votesystem</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:spring-mybatis.xml;
classpath:spring-common.xml;
classpath:spring-security.xml;
classpath:application-*.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>
<filter>
<filter-name>ExceptionFilter</filter-name>
<filter-class>samsung.sds.system.common.filter.ExceptionFilter</filter-class>
<init-param>
<param-name>exceptionPage</param-name>
<param-value>/WEB-INF/jsp/common/exception.jsp</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ExceptionFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- add the sitemesh framework -->
<filter>
<filter-name>sitemesh</filter-name>
<filter-class>org.sitemesh.config.ConfigurableSiteMeshFilter</filter-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:sitemesh3.xml
</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>balckListFilter</filter-name>
<filter-class>samsung.sds.systemMonitor.userOperationMonitor.filter.IpFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>balckListFilter</filter-name>
<url-pattern>/login.do</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>samsung.sds.systemMonitor.userOperationMonitor.service.impl.SessionListener</listener-class>
</listener>
<!-- 防止spring内存溢出监听器 -->
<listener>
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
</listener>
<!-- 在controller中以autowire方式获取 request -->
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<servlet>
<servlet-name>spring</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:spring-mvc.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>spring</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- <servlet> <servlet-name>DisplayChart</servlet-name> <servlet-class>samsung.sds.vote.controller.DisplayChart</servlet-class>
</servlet> <servlet-mapping> <servlet-name>DisplayChart</servlet-name> <url-pattern>/chart</url-pattern>
</servlet-mapping> -->
<filter>
<filter-name>sessionFilter</filter-name>
<filter-class>samsung.sds.system.common.filter.SessionFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>sessionFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<error-page>
<error-code>404</error-code>
<location>/WEB-INF/jsp/common/404.jsp</location>
</error-page>
<!-- 配置session超时时间,单位分钟 -->
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.do</welcome-file>
</welcome-file-list>
</web-app>
0 0
- web.xml
- WEB.XML
- web.xml
- web.xml
- web.xml
- web.xml
- web.xml
- web.xml
- web.xml
- web.xml
- web.xml
- web.xml
- web.xml
- web.xml
- web.xml
- web.xml
- web.xml
- web.xml
- 动态规划之矩阵链乘法(第15章)
- md5校验
- 多渠道打包
- 不规则区域的点击事件判断
- 如何获得手机屏幕分辨率?
- web.xml
- css3、jquery实现边框闪烁小例
- 1.设置用户A对目录C有rw权限,用户B对目录C有只读权限。
- 产品新人一年的产品经历,产品经理的世界是这样的!
- 127.Examine the data in the CUSTOMERS table:
- LINUX 中的 dump 和 restore 命令
- Linode主机搭建(一)—— 注册账号和申请机器
- php学习笔记之:环境配置(一)
- 对css定位的理解