Project

General

Profile

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
    <listener>
8
        <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
9
    </listener>
10

    
11
    <context-param>
12
        <param-name>contextConfigLocation</param-name>
13
        <param-value>
14
            /WEB-INF/applicationContext.xml
15
            /WEB-INF/aai-security.xml
16
        </param-value>
17
    </context-param>
18
    <context-param>
19
        <param-name>log4jConfigLocation</param-name>
20
        <param-value>/WEB-INF/log4j.properties</param-value>
21
    </context-param>
22
    <context-param>
23
        <param-name>log4jRefreshInterval</param-name>
24
        <param-value>1000</param-value>
25
    </context-param>
26
    <context-param>
27
        <param-name>log4jExposeWebAppRoot</param-name>
28
        <param-value>false</param-value>
29
    </context-param>
30

    
31
    <servlet>
32
        <servlet-name>spring</servlet-name>
33
        <servlet-class>
34
            org.springframework.web.servlet.DispatcherServlet
35
        </servlet-class>
36
        <init-param>
37
            <param-name>throwExceptionIfNoHandlerFound</param-name>
38
            <param-value>true</param-value>
39
        </init-param>
40
        <load-on-startup>1</load-on-startup>
41
    </servlet>
42

    
43
    <filter>
44
        <filter-name>springSecurityFilterChain</filter-name>
45
        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
46
        <init-param>
47
            <param-name>contextAttribute</param-name>
48
            <param-value>org.springframework.web.servlet.FrameworkServlet.CONTEXT.spring</param-value>
49
        </init-param>
50
    </filter>
51

    
52
    <filter>
53
        <filter-name>CorsFilter</filter-name>
54
        <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
55
        <init-param>
56
            <param-name>cors.allowed.origins</param-name>
57
            <param-value>*</param-value>
58
        </init-param>
59
        <init-param>
60
            <param-name>cors.allowed.headers</param-name>
61
            <param-value>Content-Type,X-Requested-With,accept,authorization,Origin,Access-Control-Request-Method,Access-Control-Request-Headers</param-value>
62
        </init-param>
63
        <init-param>
64
            <param-name>cors.allowed.methods</param-name>
65
            <param-value>GET, POST, PUT, DELETE, OPTIONS, HEAD</param-value>
66
        </init-param>
67
    </filter>
68

    
69
    <filter-mapping>
70
        <filter-name>CorsFilter</filter-name>
71
        <url-pattern>/*</url-pattern>
72
    </filter-mapping>
73

    
74
    <filter>
75
        <filter-name>springSessionRepositoryFilter</filter-name>
76
        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
77
    </filter>
78
    <filter-mapping>
79
        <filter-name>springSessionRepositoryFilter</filter-name>
80
        <url-pattern>/*</url-pattern>
81
        <dispatcher>REQUEST</dispatcher>
82
        <dispatcher>ERROR</dispatcher>
83
    </filter-mapping>
84

    
85
    <filter-mapping>
86
        <filter-name>springSecurityFilterChain</filter-name>
87
        <url-pattern>/*</url-pattern>
88
    </filter-mapping>
89

    
90
    <servlet-mapping>
91
        <servlet-name>spring</servlet-name>
92
        <url-pattern>/</url-pattern>
93
    </servlet-mapping>
94
</web-app>
(5-5/5)