<?xml version="1.0" encoding="utf-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>JAX-RS Simple Service</display-name>
<description>JAX-RS Simple Service</description>
<welcome-file-list>
<welcome-file>index</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:/beans.xml</param-value>
</context-param>
<!-- <context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>classpath*:/log4j.properties</param-value>
</context-param> -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- listener -->
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
<!-- 安全登录过滤器 -->
<filter>
<filter-name>IdentityFilter</filter-name>
<filter-class>com.icp.middleware.servlet.IdentityFilter</filter-class>
<init-param>
<param-name>redirectURL</param-name>
<param-value>http://appserver.wocloud.com/IdentityServlet</param-value>
</init-param>
<init-param>
<param-name>sessionKey</param-name>
<param-value>user</param-value>
</init-param>
<init-param>
<param-name>noCheckURLList</param-name>
<param-value>/IdentityServlet;/service/r/statistics/get/cluster/statistics;/service/r/statistics/get/artifact/statistics</param-value>
</init-param>
</filter>
<filter>
<filter-name>LoginFilter</filter-name>
<filter-class>com.icp.middleware.servlet.LoginFilter</filter-class>
<init-param>
<param-name>redirectURL</param-name>
<param-value>tenant/login_index.jsp</param-value>
</init-param>
<init-param>
<param-name>tenantLogin</param-name>
<param-value>login_index.jsp</param-value>
</init-param>
<init-param>
<param-name>tenantHome</param-name>
<param-value>index.jsp</param-value>
</init-param>
<init-param>
<param-name>adminHome</param-name>
<param-value>index.jsp</param-value>
</init-param>
</filter>
<!-- <filter-mapping>
<filter-name>LoginFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> -->
<filter>
<filter-name>Filter4A</filter-name>
<filter-class>com.icp.middleware.servlet.Filter4A</filter-class>
<init-param>
<param-name>uapAddress</param-name>
<!-- <param-value>http://172.16.20.21/uac/services/CheckAiuapTokenSoap</param-value> -->
<param-value>http://10.122.129.200:8999/uap/services/CheckAiuapTokenSoap</param-value>
</init-param>
<init-param>
<param-name>serviceId</param-name>
<param-value>AIUAP</param-value>
</init-param>
<init-param>
<param-name>redirectURL</param-name>
<param-value>http://192.168.1.90:8080</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Filter4A</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/service/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>context</servlet-name>
<servlet-class>com.icp.middleware.servlet.Bootstrap</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>index</servlet-name>
<servlet-class>com.icp.middleware.servlet.Index</servlet-class>
</servlet>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<!-- 安全登录servlet -->
<servlet>
<servlet-name>IdentityServlet</servlet-name>
<servlet-class>com.icp.middleware.servlet.IdentityServlet</servlet-class>
<init-param>
<param-name>AttribIndex</param-name>
<param-value>3234443</param-value>
</init-param>
<init-param>
<param-name>ConsumerUrl</param-name>
<param-value>http://appserver.wocloud.com/IdentityServlet</param-value>
</init-param>
<init-param>
<param-name>IdpUrl</param-name>
<param-value>https://login.wocloud.com/samlsso</param-value>
</init-param>
<init-param>
<param-name>Issuer</param-name>
<param-value>middleware</param-value>
</init-param>
<init-param>
<param-name>NameId</param-name>
<param-value>icp.middleware</param-value>
</init-param>
<init-param>
<param-name>NameQualifier</param-name>
<param-value>middleware</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>A4LoginServlet</servlet-name>
<servlet-class>com.icp.middleware.servlet.A4LoginServlet</servlet-class>
<init-param>
<param-name>portal</param-name>
<param-value>http://portal.wocloud.com.cn/portal</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>IdentityServlet</servlet-name>
<url-pattern>/IdentityServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>index</servlet-name>
<url-pattern>/index</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>A4LoginServlet</servlet-name>
<url-pattern>/a4login</url-pattern>
</servlet-mapping>
</web-app>
转载于:https://blog.51cto.com/3310819/1260885