跟Spring有关的,在web.xml的配置
Spring MVC的前端控制器,用来处理所有请求
<!-- Handles all requests into the application --><servlet><servlet-name>Spring MVC Dispatcher Servlet</servlet-name><servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class><init-param><param-name>contextConfigLocation</param-name><param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value></init-param><load-on-startup>1</load-on-startup></servlet><servlet-mapping><servlet-name>Spring MVC Dispatcher Servlet</servlet-name><url-pattern>/</url-pattern></servlet-mapping>
contextConfigLocation如果不写的时候,默认为{servlet-name}-context.xml