1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
3
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd
|
5
|
http://xmlns.jcp.org/xml/ns/javaee "
|
6
|
version="3.1">
|
7
|
|
8
|
<context-param>
|
9
|
<param-name>log4jConfigLocation</param-name>
|
10
|
<param-value>/WEB-INF/log4j.properties</param-value>
|
11
|
</context-param>
|
12
|
<context-param>
|
13
|
<param-name>log4jRefreshInterval</param-name>
|
14
|
<param-value>1000</param-value>
|
15
|
</context-param>
|
16
|
<context-param>
|
17
|
<param-name>log4jExposeWebAppRoot</param-name>
|
18
|
<param-value>false</param-value>
|
19
|
</context-param>
|
20
|
<filter>
|
21
|
<filter-name>springSecurityFilterChain</filter-name>
|
22
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
23
|
</filter>
|
24
|
<filter-mapping>
|
25
|
<filter-name>springSecurityFilterChain</filter-name>
|
26
|
<url-pattern>/*</url-pattern>
|
27
|
</filter-mapping>
|
28
|
<listener>
|
29
|
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
|
30
|
</listener>
|
31
|
|
32
|
|
33
|
<listener>
|
34
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
35
|
</listener>
|
36
|
|
37
|
<context-param>
|
38
|
<param-name>contextConfigLocation</param-name>
|
39
|
<param-value>/WEB-INF/applicationContext.xml
|
40
|
</param-value>
|
41
|
</context-param>
|
42
|
|
43
|
|
44
|
<filter>
|
45
|
<filter-name>CorsFilter</filter-name>
|
46
|
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
|
47
|
<init-param>
|
48
|
<param-name>cors.allowed.origins</param-name>
|
49
|
<param-value>*</param-value>
|
50
|
</init-param>
|
51
|
<init-param>
|
52
|
<param-name>cors.allowed.headers</param-name>
|
53
|
<param-value>Content-Type,X-Requested-With,accept,authorization,Origin,Access-Control-Request-Method,Access-Control-Request-Headers</param-value>
|
54
|
</init-param>
|
55
|
<init-param>
|
56
|
<param-name>cors.allowed.methods</param-name>
|
57
|
<param-value>GET, POST, PUT, DELETE, OPTIONS, HEAD</param-value>
|
58
|
</init-param>
|
59
|
</filter>
|
60
|
|
61
|
<filter-mapping>
|
62
|
<filter-name>CorsFilter</filter-name>
|
63
|
<url-pattern>/*</url-pattern>
|
64
|
</filter-mapping>
|
65
|
|
66
|
<filter>
|
67
|
<filter-name>springSessionRepositoryFilter</filter-name>
|
68
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
69
|
</filter>
|
70
|
<filter-mapping>
|
71
|
<filter-name>springSessionRepositoryFilter</filter-name>
|
72
|
<url-pattern>/*</url-pattern>
|
73
|
<dispatcher>REQUEST</dispatcher>
|
74
|
<dispatcher>ERROR</dispatcher>
|
75
|
</filter-mapping>
|
76
|
|
77
|
</web-app>
|