87 lines
2.9 KiB
XML
87 lines
2.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<web-app>
|
|
|
|
<listener>
|
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
|
</listener>
|
|
|
|
<context-param>
|
|
<param-name>contextConfigLocation</param-name>
|
|
<param-value>
|
|
/WEB-INF/applicationContext.xml
|
|
</param-value>
|
|
</context-param>
|
|
<context-param>
|
|
<param-name>log4jRefreshInterval</param-name>
|
|
<param-value>1000</param-value>
|
|
</context-param>
|
|
<context-param>
|
|
<param-name>log4jExposeWebAppRoot</param-name>
|
|
<param-value>false</param-value>
|
|
</context-param>
|
|
|
|
<servlet>
|
|
<servlet-name>spring</servlet-name>
|
|
<servlet-class>
|
|
org.springframework.web.servlet.DispatcherServlet
|
|
</servlet-class>
|
|
<init-param>
|
|
<param-name>throwExceptionIfNoHandlerFound</param-name>
|
|
<param-value>true</param-value>
|
|
</init-param>
|
|
<load-on-startup>1</load-on-startup>
|
|
</servlet>
|
|
|
|
<filter>
|
|
<filter-name>springSecurityFilterChain</filter-name>
|
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
|
<init-param>
|
|
<param-name>contextAttribute</param-name>
|
|
<param-value>org.springframework.web.servlet.FrameworkServlet.CONTEXT.spring</param-value>
|
|
</init-param>
|
|
</filter>
|
|
|
|
<filter>
|
|
<filter-name>CorsFilter</filter-name>
|
|
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
|
|
<init-param>
|
|
<param-name>cors.allowed.origins</param-name>
|
|
<param-value>*</param-value>
|
|
</init-param>
|
|
<init-param>
|
|
<param-name>cors.allowed.headers</param-name>
|
|
<param-value>Content-Type,X-Requested-With,accept,authorization,Origin,Access-Control-Request-Method,Access-Control-Request-Headers</param-value>
|
|
</init-param>
|
|
<init-param>
|
|
<param-name>cors.allowed.methods</param-name>
|
|
<param-value>GET, POST, PUT, DELETE, OPTIONS, HEAD</param-value>
|
|
</init-param>
|
|
</filter>
|
|
|
|
<filter-mapping>
|
|
<filter-name>CorsFilter</filter-name>
|
|
<url-pattern>/*</url-pattern>
|
|
</filter-mapping>
|
|
|
|
<filter>
|
|
<filter-name>springSessionRepositoryFilter</filter-name>
|
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
|
</filter>
|
|
<filter-mapping>
|
|
<filter-name>springSessionRepositoryFilter</filter-name>
|
|
<url-pattern>/*</url-pattern>
|
|
<dispatcher>REQUEST</dispatcher>
|
|
<dispatcher>ERROR</dispatcher>
|
|
</filter-mapping>
|
|
|
|
<filter-mapping>
|
|
<filter-name>springSecurityFilterChain</filter-name>
|
|
<url-pattern>/*</url-pattern>
|
|
</filter-mapping>
|
|
|
|
<servlet-mapping>
|
|
<servlet-name>spring</servlet-name>
|
|
<url-pattern>/</url-pattern>
|
|
</servlet-mapping>
|
|
</web-app>
|