123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- <?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>contextConfigLocation</param-name>
- <param-value> classpath:/applicationContext.xml,
- classpath:/applicationContext-webservice.xml</param-value>
- </context-param>
- -->
- <!--
- 设置log4j存放Log文件位置(通过spring统一进行管理)-->
- <context-param>
- <param-name>webAppRootKey</param-name>
- <param-value>opal-isc.root</param-value>
- </context-param>
- <!--
- 加载log4j的配置文件-->
- <context-param>
- <param-name>log4jConfigLocation</param-name>
- <param-value>/WEB-INF/config/platform/log4j.properties</param-value>
- </context-param>
- <!--Spring默认刷新Log4j配置文件的间隔,单位为millisecond -->
- <context-param>
- <param-name>log4jRefreshInterval</param-name>
- <param-value>60000</param-value>
- </context-param>
- <!--Spring用于log4j初始化的监听器 -->
- <listener>
- <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
- </listener>
- <!--
- 加载Spring XML配置文件,Spring安全配置及各类资源文件
- -->
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>
- /WEB-INF/config/platform/applicationContext.xml,
- /WEB-INF/config/platform/applicationContext-security.xml
- </param-value>
- </context-param>
- <!--spring监听器的配置,用于在启动Web容器时,自动装配ApplicationContext的配置信息-->
- <listener>
- <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
- </listener>
- <listener>
- <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
- </listener>
- <!--
- 此监听器会在session创建和销毁的时候通知Spring Security 如果要限制用户登录个数,这里就要配置.
- -->
- <listener>
- <listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class>
- </listener>
- <!-- 使用Spring中的过滤器解决在请求和应答中的中文乱码问题 -->
- <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>
- <init-param>
- <param-name>forceEncoding</param-name>
- <param-value>true</param-value>
- </init-param>
- </filter>
- <!--Spring Secutiry的过滤器链配置-->
- <filter>
- <filter-name>springSecurityFilterChain</filter-name>
- <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
- </filter>
- <filter>
- <filter-name>baseWebContextFilter</filter-name>
- <filter-class>com.xc.opal.base.web.filter.BaseWebContextFilter</filter-class>
- <init-param>
- <param-name>excludeUrl</param-name>
- <param-value>/resources/,/login,/login/authentication,/logout,/forbidden.html,/services/</param-value>
- </init-param>
- </filter>
- <filter-mapping>
- <filter-name>encodingFilter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <!---->
- <filter-mapping>
- <filter-name>springSecurityFilterChain</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <filter-mapping>
- <filter-name>baseWebContextFilter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <servlet>
- <servlet-name>SpringDispatcherServlet</servlet-name>
- <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
- <init-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>/WEB-INF/config/platform/applicationContext-servlet.xml</param-value>
- </init-param>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <!--
- <servlet> <servlet-name>cxf</servlet-name>
- <display-name>cxf</display-name> <description>ApacheCXF</description>
- <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
- <load-on-startup>2</load-on-startup> </servlet> <servlet-mapping>
- <servlet-name>cxf</servlet-name>
- <url-pattern>/services/*</url-pattern> </servlet-mapping>
- -->
- <servlet-mapping>
- <servlet-name>SpringDispatcherServlet</servlet-name>
- <url-pattern>/</url-pattern>
- </servlet-mapping>
- <!-- *********************报表工具*******************************-->
- <servlet>
- <servlet-name>ReportServer</servlet-name>
- <servlet-class>com.fr.web.ReportServlet</servlet-class>
- <load-on-startup>0</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>ReportServer</servlet-name>
- <url-pattern>/ReportServer</url-pattern>
- </servlet-mapping>
- <!-- *************************报表结束******************************** -->
- <welcome-file-list>
- <welcome-file>/login1.jsp</welcome-file>
- </welcome-file-list>
- <!-- 异常处理 -->
- <error-page>
- <error-code>403</error-code>
- <location>/403.jsp</location>
- </error-page>
- <error-page>
- <error-code>404</error-code>
- <location>/404.jsp</location>
- </error-page>
- <error-page>
- <error-code>505</error-code>
- <location>/505.jsp</location>
- </error-page>
- </web-app>
|