|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
2
|
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
|
|
|
3
|
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
4
|
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
|
|
5
|
+
|
|
|
6
|
+ <!-- Java-based annotation-driven Spring container definition -->
|
|
|
7
|
+ <context-param>
|
|
|
8
|
+ <param-name>contextClass</param-name>
|
|
|
9
|
+ <param-value>org.springframework.web.context.support.AnnotationConfigWebApplicationContext</param-value>
|
|
|
10
|
+ </context-param>
|
|
|
11
|
+
|
|
|
12
|
+ <!-- Location of Java @Configuration classes that configure the components that makeup this application -->
|
|
|
13
|
+ <context-param>
|
|
|
14
|
+ <param-name>contextConfigLocation</param-name>
|
|
|
15
|
+ <param-value>org.springframework.hello.config</param-value>
|
|
|
16
|
+ </context-param>
|
|
|
17
|
+
|
|
|
18
|
+ <!-- Creates the Spring Container shared by all Servlets and Filters -->
|
|
|
19
|
+ <listener>
|
|
|
20
|
+ <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
|
|
21
|
+ </listener>
|
|
|
22
|
+
|
|
|
23
|
+ <!-- Processes application requests -->
|
|
|
24
|
+ <servlet>
|
|
|
25
|
+ <servlet-name>appServlet</servlet-name>
|
|
|
26
|
+ <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
|
|
27
|
+ <init-param>
|
|
|
28
|
+ <param-name>contextClass</param-name>
|
|
|
29
|
+ <param-value>org.springframework.web.context.support.AnnotationConfigWebApplicationContext</param-value>
|
|
|
30
|
+ </init-param>
|
|
|
31
|
+ <init-param>
|
|
|
32
|
+ <param-name>contextConfigLocation</param-name>
|
|
|
33
|
+ <param-value>org.springframework.hello.config</param-value>
|
|
|
34
|
+ </init-param>
|
|
|
35
|
+ <load-on-startup>1</load-on-startup>
|
|
|
36
|
+ </servlet>
|
|
|
37
|
+
|
|
|
38
|
+ <servlet-mapping>
|
|
|
39
|
+ <servlet-name>appServlet</servlet-name>
|
|
|
40
|
+ <url-pattern>/</url-pattern>
|
|
|
41
|
+ </servlet-mapping>
|
|
|
42
|
+
|
|
|
43
|
+</web-app>
|