1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<web-app>
|
3
|
|
4
|
<listener>
|
5
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
6
|
</listener>
|
7
|
|
8
|
<context-param>
|
9
|
<param-name>contextConfigLocation</param-name>
|
10
|
<param-value>
|
11
|
/WEB-INF/applicationContext.xml
|
12
|
/WEB-INF/aai-security.xml
|
13
|
</param-value>
|
14
|
</context-param>
|
15
|
<context-param>
|
16
|
<param-name>log4jRefreshInterval</param-name>
|
17
|
<param-value>1000</param-value>
|
18
|
</context-param>
|
19
|
<context-param>
|
20
|
<param-name>log4jExposeWebAppRoot</param-name>
|
21
|
<param-value>false</param-value>
|
22
|
</context-param>
|
23
|
|
24
|
<servlet>
|
25
|
<servlet-name>spring</servlet-name>
|
26
|
<servlet-class>
|
27
|
org.springframework.web.servlet.DispatcherServlet
|
28
|
</servlet-class>
|
29
|
<init-param>
|
30
|
<param-name>throwExceptionIfNoHandlerFound</param-name>
|
31
|
<param-value>true</param-value>
|
32
|
</init-param>
|
33
|
<load-on-startup>1</load-on-startup>
|
34
|
</servlet>
|
35
|
|
36
|
<filter>
|
37
|
<filter-name>springSecurityFilterChain</filter-name>
|
38
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
39
|
<init-param>
|
40
|
<param-name>contextAttribute</param-name>
|
41
|
<param-value>org.springframework.web.servlet.FrameworkServlet.CONTEXT.spring</param-value>
|
42
|
</init-param>
|
43
|
</filter>
|
44
|
|
45
|
<filter>
|
46
|
<filter-name>CorsFilter</filter-name>
|
47
|
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
|
48
|
<init-param>
|
49
|
<param-name>cors.allowed.origins</param-name>
|
50
|
<param-value>*</param-value>
|
51
|
</init-param>
|
52
|
<init-param>
|
53
|
<param-name>cors.allowed.headers</param-name>
|
54
|
<param-value>Content-Type,X-Requested-With,accept,authorization,Origin,Access-Control-Request-Method,Access-Control-Request-Headers</param-value>
|
55
|
</init-param>
|
56
|
<init-param>
|
57
|
<param-name>cors.allowed.methods</param-name>
|
58
|
<param-value>GET, POST, PUT, DELETE, OPTIONS, HEAD</param-value>
|
59
|
</init-param>
|
60
|
</filter>
|
61
|
|
62
|
<filter-mapping>
|
63
|
<filter-name>CorsFilter</filter-name>
|
64
|
<url-pattern>/*</url-pattern>
|
65
|
</filter-mapping>
|
66
|
|
67
|
<filter>
|
68
|
<filter-name>springSessionRepositoryFilter</filter-name>
|
69
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
70
|
</filter>
|
71
|
<filter-mapping>
|
72
|
<filter-name>springSessionRepositoryFilter</filter-name>
|
73
|
<url-pattern>/*</url-pattern>
|
74
|
<dispatcher>REQUEST</dispatcher>
|
75
|
<dispatcher>ERROR</dispatcher>
|
76
|
</filter-mapping>
|
77
|
|
78
|
<filter-mapping>
|
79
|
<filter-name>springSecurityFilterChain</filter-name>
|
80
|
<url-pattern>/*</url-pattern>
|
81
|
</filter-mapping>
|
82
|
|
83
|
<servlet-mapping>
|
84
|
<servlet-name>spring</servlet-name>
|
85
|
<url-pattern>/</url-pattern>
|
86
|
</servlet-mapping>
|
87
|
</web-app>
|