<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>classpath:log4j.properties</param-value>
</context-param>
<context-param>
<param-name>log4jRefreshInterval</param-name>
<param-value>60000</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-*.xml</param-value>
</context-param>
<!-- log4j初始化
-->
<listener>
<listener-class>
org.springframework.web.util.Log4jConfigListener
</listener-class>
</listener>
<!-- spring初始化
-->
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<!-- CASFILTER PLACEHOLDER,DO
NOT DELETE -->
<!-- cas过滤器begin
<filter>
<filter-name>CasLoginFilter</filter-name>
<filter-class>
com.huawei.servcomplain.common.filter.CasLoginFilter
</filter-class>
<init-param>
<param-name>casServer</param-name>
<param-value>http://10.41.20.209:2082/cas</param-value>
</init-param>
<init-param>
<param-name>validateErrorRedirectUrl</param-name>
<param-value>http://192.168.210.119:38180/BICP</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CasLoginFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> -->
<!-- cas过滤器end -->
<!-- 编码过滤器begin
-->
<filter>
<filter-name>CharacterEncodingFilter</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>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CharacterEncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- 编码过滤器end
-->
<!-- 系统控制转发中心begin -->
<filter>
<filter-name>sc</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>sc</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- 系统控制转发中心end
-->
<jsp-config>
<taglib>
<taglib-uri>/sc</taglib-uri>
<taglib-location>/WEB-INF/sc.tld</taglib-location>
</taglib>
</jsp-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/jsp/error/403.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/WEB-INF/jsp/error/404.jsp</location>
</error-page>
<error-page>
<exception-type>
com.huawei.servcomplain.common.exception.BizException
</exception-type>
<location>/WEB-INF/jsp/error/bizError.jsp</location>
</error-page>
<error-page>
<exception-type>
com.huawei.servcomplain.common.exception.AuthorityException
</exception-type>
<location>/WEB-INF/jsp/error/noAuthority.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/WEB-INF/jsp/error/500.jsp</location>
</error-page>
</web-app>
相关文章
- 08-06《Web接口开发与自动化测试 -- 基于Python语言》 ---前言
- 08-06【原创】无法在web服务器上启动调试
- 08-06Parami协议:基于Web3.0构想提出的AD3.0范式
- 08-06基于 libevent 开源框架实现的 web 服务器
- 08-06System.Web.Caching.Cache缓存帮助类
- 08-06load-on-startup在web.xml中的含义
- 08-06.Net Core gRPC入门(二)——Web客户端
- 08-06基于 Web 引擎扩展技术的 RTC 混合开发框架实践
- 08-06基于 Web 引擎扩展技术的 RTC 混合开发框架实践
- 08-06Web RTC录视频