11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <web-app xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3- xmlns=" http://java.sun.com/xml/ns/javaee" xmlns : web =" http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
4- xsi:schemaLocation="
5- http://java.sun.com/xml/ns/javaee
6- http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
7- id=" WebApp_ID" version =" 3.0" >
8-
9- <display-name >Spring Security Basic Auth Application</display-name >
10-
11- <!-- Spring root -->
12- <context-param >
13- <param-name >contextClass</param-name >
14- <param-value >
2+ <web-app xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xmlns =" http://java.sun.com/xml/ns/javaee" xmlns : web =" http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi : schemaLocation =" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id =" WebApp_ID" version =" 3.0" >
3+ <display-name >Spring Security Basic Auth Application</display-name >
4+ <context-param >
5+ <param-name >contextClass</param-name >
6+ <param-value >
157 org.springframework.web.context.support.AnnotationConfigWebApplicationContext
168 </param-value >
17- </context-param >
18- <context-param >
19- <param-name >contextConfigLocation</param-name >
20- <param-value >org.baeldung.spring</param-value >
21- </context-param >
22-
23- <listener >
24- <listener-class >org.springframework.web.context.ContextLoaderListener</listener-class >
25- </listener >
26-
27- <!-- Spring child -->
28- <servlet >
29- <servlet-name >mvc</servlet-name >
30- <servlet-class >org.springframework.web.servlet.DispatcherServlet</servlet-class >
31- <load-on-startup >1</load-on-startup >
32- </servlet >
33- <servlet-mapping >
34- <servlet-name >mvc</servlet-name >
35- <url-pattern >/</url-pattern >
36- </servlet-mapping >
37-
38- <!-- Spring Security -->
39- <filter >
40- <filter-name >springSecurityFilterChain</filter-name >
41- <filter-class >org.springframework.web.filter.DelegatingFilterProxy</filter-class >
42- </filter >
43- <filter-mapping >
44- <filter-name >springSecurityFilterChain</filter-name >
45- <url-pattern >/*</url-pattern >
46- </filter-mapping >
47-
48- <welcome-file-list >
49- <welcome-file >index.html</welcome-file >
50- </welcome-file-list >
51-
9+ </context-param >
10+ <context-param >
11+ <param-name >contextConfigLocation</param-name >
12+ <param-value >org.baeldung.spring</param-value >
13+ </context-param >
14+ <listener >
15+ <listener-class >org.springframework.web.context.ContextLoaderListener</listener-class >
16+ </listener >
17+ <servlet >
18+ <servlet-name >mvc</servlet-name >
19+ <servlet-class >org.springframework.web.servlet.DispatcherServlet</servlet-class >
20+ <load-on-startup >1</load-on-startup >
21+ </servlet >
22+ <servlet-mapping >
23+ <servlet-name >mvc</servlet-name >
24+ <url-pattern >/</url-pattern >
25+ </servlet-mapping >
26+ <filter >
27+ <filter-name >springSecurityFilterChain</filter-name >
28+ <filter-class >org.springframework.web.filter.DelegatingFilterProxy</filter-class >
29+ </filter >
30+ <filter-mapping >
31+ <filter-name >springSecurityFilterChain</filter-name >
32+ <url-pattern >/*</url-pattern >
33+ </filter-mapping >
34+ <welcome-file-list >
35+ <welcome-file >index.html</welcome-file >
36+ </welcome-file-list >
5237</web-app >
0 commit comments