<!--web 和spring整合-->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:applicationContext.xml
</param-value>
</context-param>
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<!--设置mvc配置文件 默认是dispatcher-servlet.xml-->
<!-- <init-param>
<param-name>contextConfigLocation</param-name>
<param-value></param-value>
</init-param>-->
</servlet>
web.xml里已经加了这两个配置了