You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
2.1 KiB
66 lines
2.1 KiB
2 years ago
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
|
xmlns:web="http://java.sun.com/xml/ns/javaee" xmlns:websocket="http://www.springframework.org/schema/websocket"
|
||
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd http://www.springframework.org/schema/websocket http://www.springframework.org/schema/websocket/spring-websocket.xsd"
|
||
|
id="WebApp_ID" version="3.0">
|
||
|
<display-name></display-name>
|
||
|
<welcome-file-list>
|
||
|
<welcome-file>index.jsp</welcome-file>
|
||
|
</welcome-file-list>
|
||
|
<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>
|
||
|
<filter-mapping>
|
||
|
<filter-name>encodingFilter</filter-name>
|
||
|
<url-pattern>/*</url-pattern>
|
||
|
</filter-mapping>
|
||
|
<context-param>
|
||
|
<param-name>contextConfigLocation</param-name>
|
||
|
<param-value>
|
||
|
classpath:rest-content.xml
|
||
|
</param-value>
|
||
|
</context-param>
|
||
|
|
||
|
<filter>
|
||
|
<filter-name>header</filter-name>
|
||
|
<filter-class>com.lp.HeaderFilter</filter-class>
|
||
|
</filter>
|
||
|
<filter-mapping>
|
||
|
<filter-name>header</filter-name>
|
||
|
<url-pattern>/*</url-pattern>
|
||
|
</filter-mapping>
|
||
|
|
||
|
<listener>
|
||
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
||
|
</listener>
|
||
|
<servlet>
|
||
|
<servlet-name>spring</servlet-name>
|
||
|
<servlet-class>com.lp.Dispatcher</servlet-class>
|
||
|
<init-param>
|
||
|
<param-name>contextConfigLocation</param-name>
|
||
|
<param-value>classpath:rest-servlet.xml</param-value>
|
||
|
</init-param>
|
||
|
<load-on-startup>1</load-on-startup>
|
||
|
</servlet>
|
||
|
<servlet-mapping>
|
||
|
<servlet-name>spring</servlet-name>
|
||
|
<url-pattern>/service/*</url-pattern>
|
||
|
</servlet-mapping>
|
||
|
<servlet-mapping>
|
||
|
<servlet-name>spring</servlet-name>
|
||
|
<url-pattern></url-pattern>
|
||
|
</servlet-mapping>
|
||
|
<servlet-mapping>
|
||
|
<servlet-name>spring</servlet-name>
|
||
|
<url-pattern>/vp/*</url-pattern>
|
||
|
</servlet-mapping>
|
||
|
</web-app>
|