57 lines
1.8 KiB
XML
57 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
|
version="3.1">
|
|
|
|
<display-name>Spring MVC Application</display-name>
|
|
|
|
<!-- Spring root -->
|
|
<context-param>
|
|
<param-name>contextClass</param-name>
|
|
<param-value>
|
|
org.springframework.web.context.support.AnnotationConfigWebApplicationContext
|
|
</param-value>
|
|
</context-param>
|
|
<context-param>
|
|
<param-name>contextConfigLocation</param-name>
|
|
<param-value>org.baeldung.spring</param-value>
|
|
</context-param>
|
|
|
|
<listener>
|
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
|
</listener>
|
|
|
|
<!-- Spring child -->
|
|
<servlet>
|
|
<servlet-name>mvc</servlet-name>
|
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
|
<load-on-startup>1</load-on-startup>
|
|
</servlet>
|
|
<servlet-mapping>
|
|
<servlet-name>mvc</servlet-name>
|
|
<url-pattern>/</url-pattern>
|
|
</servlet-mapping>
|
|
|
|
<!-- Spring Security -->
|
|
<filter>
|
|
<filter-name>springSecurityFilterChain</filter-name>
|
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
|
</filter>
|
|
<filter-mapping>
|
|
<filter-name>springSecurityFilterChain</filter-name>
|
|
<url-pattern>/*</url-pattern>
|
|
</filter-mapping>
|
|
|
|
<error-page>
|
|
<error-code>403</error-code>
|
|
<location>/accessDenied</location>
|
|
</error-page>
|
|
|
|
<!-- <welcome-file-list> -->
|
|
<!-- <welcome-file>index.html</welcome-file> -->
|
|
<!-- </welcome-file-list> -->
|
|
|
|
|
|
|
|
</web-app> |