1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
3
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd
|
5
|
http://xmlns.jcp.org/xml/ns/javaee "
|
6
|
version="3.1">
|
7
|
|
8
|
<context-param>
|
9
|
<param-name>log4jConfigLocation</param-name>
|
10
|
<param-value>/WEB-INF/log4j.properties</param-value>
|
11
|
</context-param>
|
12
|
<context-param>
|
13
|
<param-name>log4jRefreshInterval</param-name>
|
14
|
<param-value>1000</param-value>
|
15
|
</context-param>
|
16
|
<context-param>
|
17
|
<param-name>log4jExposeWebAppRoot</param-name>
|
18
|
<param-value>false</param-value>
|
19
|
</context-param>
|
20
|
<listener>
|
21
|
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
|
22
|
</listener>
|
23
|
|
24
|
|
25
|
<listener>
|
26
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
27
|
</listener>
|
28
|
|
29
|
<context-param>
|
30
|
<param-name>contextConfigLocation</param-name>
|
31
|
<param-value>/WEB-INF/applicationContext.xml
|
32
|
</param-value>
|
33
|
</context-param>
|
34
|
|
35
|
|
36
|
<servlet>
|
37
|
<servlet-name>spring</servlet-name>
|
38
|
<servlet-class>
|
39
|
org.springframework.web.servlet.DispatcherServlet
|
40
|
</servlet-class>
|
41
|
<load-on-startup>1</load-on-startup>
|
42
|
</servlet>
|
43
|
|
44
|
<servlet-mapping>
|
45
|
<servlet-name>spring</servlet-name>
|
46
|
<url-pattern>/</url-pattern>
|
47
|
</servlet-mapping>
|
48
|
|
49
|
</web-app>
|