You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.9 KiB
68 lines
1.9 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
|
|
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
|
|
|
|
<welcome-file-list>
|
|
<welcome-file>index.jsp</welcome-file>
|
|
</welcome-file-list>
|
|
|
|
<context-param>
|
|
<param-name>contextConfigLocation</param-name>
|
|
<param-value>
|
|
/WEB-INF/classes/applicationContext.xml
|
|
</param-value>
|
|
</context-param>
|
|
|
|
<servlet>
|
|
<servlet-name>SpringMVC</servlet-name>
|
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
|
<init-param>
|
|
<param-name>contextConfigLocation</param-name>
|
|
<param-value>/WEB-INF/classes/applicationContext.xml</param-value>
|
|
</init-param>
|
|
<load-on-startup>1</load-on-startup>
|
|
</servlet>
|
|
<servlet-mapping>
|
|
<servlet-name>SpringMVC</servlet-name>
|
|
<url-pattern>*.do</url-pattern>
|
|
</servlet-mapping>
|
|
|
|
<!-- Spring -->
|
|
|
|
<listener>
|
|
<description>spring监听器</description>
|
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
|
</listener>
|
|
|
|
<filter>
|
|
<filter-name>encodingFilter</filter-name>
|
|
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
|
|
<init-param>
|
|
<param-name>encoding</param-name>
|
|
<param-value>utf-8</param-value>
|
|
</init-param>
|
|
</filter>
|
|
<filter-mapping>
|
|
<filter-name>encodingFilter</filter-name>
|
|
<url-pattern>/*</url-pattern>
|
|
</filter-mapping>
|
|
|
|
<!-- Spring 刷新Introspector防止内存泄露 -->
|
|
<!-- <listener>-->
|
|
<!--
|
|
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
|
|
-->
|
|
<!-- </listener>-->
|
|
|
|
<servlet>
|
|
<servlet-name>test</servlet-name>
|
|
<servlet-class>com.he.Test</servlet-class>
|
|
</servlet>
|
|
<servlet-mapping>
|
|
<servlet-name>test</servlet-name>
|
|
<url-pattern>/test</url-pattern>
|
|
</servlet-mapping>
|
|
|
|
</web-app>
|
|
|