web.xml
1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app>
<display-name>Archetype Created Web Application</display-name>
<!-- Logback配置路径 -->
<context-param>
<param-name>logbackConfigLocation</param-name>
<param-value>classpath:logback.xml</param-value> <!--classpath:${profiles.logback} 需要判断pom文件是否添加classpath: -->
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:spring.xml
</param-value>
</context-param>
<!-- Logback 配置 载入 -->
<listener>
<listener-class>ch.qos.logback.ext.spring.web.LogbackConfigListener</listener-class>
</listener>
<!--防止发生java.beans.Introspector内存泄露,应将它配置在ContextLoaderListener的前面-->
<listener>
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>dynamicQueryServlet</servlet-name>
<servlet-class>cn.runsa.portal.query.servlet.DynamicQueryServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>dynamicQueryServlet</servlet-name>
<url-pattern>/query/*</url-pattern>
</servlet-mapping>
</web-app>