码迷,mamicode.com
首页 > 编程语言 > 详细

org.springframework.web.servlet.DispatcherServlet异常

时间:2015-01-15 12:27:32      阅读:274      评论:0      收藏:0      [点我收藏+]

标签:

org.springframework.web.servlet.DispatcherServlet: No mapping found for HTTP request with URI [/] in DispatcherServlet with name ‘springMVC‘

 

出现该异常的原因是web.xml中关于springMVC核心DispatcherServlet的配置出现错误

核心配置为:

<servlet>
<servlet-name>SpringMVC-servlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:SpringMVC-servlet.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>SpringMVC-servlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>

org.springframework.web.servlet.DispatcherServlet异常

标签:

原文地址:http://www.cnblogs.com/-lpf/p/4225645.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!