#首先在web.xml中看是否配置了Spring MVC的前端控制器,就像如下内容: <!--配置spring前端控制器--> <servlet> <servlet-name>dispatcherServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <</