web.xml将各种配置整合到一起

 1 <web-app version="3.1" 
 2     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
 5     http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
 6 
 7 
 8   <display-name>Archetype Created Web Application</display-name>
 9  <welcome-file-list>
10      <welcome-file>index.jsp</welcome-file>
11      <welcome-file>index.html</welcome-file>
12 </welcome-file-list>
13 <servlet>
14     <servlet-name>spring-dispatcher</servlet-name>
15     <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
16     <init-param>
17         <param-name>contexConfigLocation</param-name>
18         <param-value>classpath:spring/spring-*.xml</param-value>
19     </init-param>
20 </servlet>
21 <servlet-mapping>
22     <servlet-name>spring-dispatcher</servlet-name>
23     <!--"/"默认匹配所有请求  -->
24     <url-pattern>/</url-pattern>
25 </servlet-mapping>
26 </web-app>
----------->农民工的码农转型之路
原文地址:https://www.cnblogs.com/shitulaoma/p/12393251.html