web.xml 1.34 KB
<!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>