123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <!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>
- <filter>
- <filter-name>CharacterEncodingFilter</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>CharacterEncodingFilter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <!--配置DispatcherServlet-->
- <servlet>
- <servlet-name>dispatcherServlet</servlet-name>
- <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
- <!--配置DispatcherServlet的初始化参数:配置文件的名称和位置-->
- <init-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>classpath:applicationContexts.xml</param-value>
- </init-param>
- <!--应用启动时就创建servlet,而不是第一次请求才创建-->
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>dispatcherServlet</servlet-name>
- <!--所有请求都由DispatcherServlet处理-->
- <url-pattern>/</url-pattern>
- </servlet-mapping>
- <welcome-file-list>
- <welcome-file>index1.jsp</welcome-file>
- </welcome-file-list>
- <!-- <servlet-mapping>-->
- <!-- <servlet-name>default</servlet-name>-->
- <!-- <url-pattern>*.jpg</url-pattern>-->
- <!-- </servlet-mapping>-->
- <!-- <taglib>-->
- <!-- <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>-->
- <!-- <taglib-location>/WEB-INF/c.tld</taglib-location>-->
- <!-- </taglib>-->
- </web-app>
|