it-console/code/java/后端-用户验证/target/admin-system/WEB-INF/web.xml

57 lines
1.8 KiB
XML
Raw Normal View History

2023-01-29 01:13:43 +00:00
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<display-name>Archetype Created Web Application</display-name>
<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.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>springmvc</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
2023-01-30 14:08:15 +00:00
<servlet-mapping>
<servlet-name>springmvc</servlet-name>
<url-pattern>/account/p13_account_check</url-pattern>
</servlet-mapping>
2023-01-29 01:13:43 +00:00
2023-01-30 14:08:15 +00:00
<!-- 用于验证Token的Filter -->
2023-01-29 01:13:43 +00:00
<filter>
2023-01-30 14:08:15 +00:00
<filter-name>token-filter</filter-name>
<filter-class>com.cpic.xim.web.filters.token.TokenFilter</filter-class>
2023-01-29 01:13:43 +00:00
</filter>
<filter-mapping>
2023-01-30 14:08:15 +00:00
<filter-name>token-filter</filter-name>
2023-01-29 01:13:43 +00:00
<url-pattern>*.do</url-pattern>
</filter-mapping>
2023-01-30 14:08:15 +00:00
<!-- 用于实现跨域访问的Filter -->
2023-01-29 01:13:43 +00:00
<filter>
2023-01-30 14:08:15 +00:00
<filter-name>cros-filter</filter-name>
<filter-class>com.cpic.xim.web.filters.cros.CrosFilter</filter-class>
2023-01-29 01:13:43 +00:00
</filter>
<filter-mapping>
2023-01-30 14:08:15 +00:00
<filter-name>cros-filter</filter-name>
<url-pattern>*</url-pattern>
2023-01-29 01:13:43 +00:00
</filter-mapping>
2023-01-30 14:08:15 +00:00
2023-01-29 01:13:43 +00:00
<!-- 配置文件路径参数 -->
<context-param>
<param-name>config_file_location</param-name>
<param-value>config.xml</param-value>
</context-param>
<listener>
<listener-class>com.cpic.xim.web.listener.ContextLoaderListener</listener-class>
</listener>
</web-app>