No mapping found for HTTP request with URI [/SpringMVC/hello] in DispatcherServlet with name 'chapte

第一次使用springMVC遇到的错误,页面是404错误,但是控制台报错:No mapping found for HTTP request with URI [/SpringMVC/hello] in DispatcherServlet with name 'chapter2'

上网查了很久,最后看到: 具体它的说明我暂时还不确定,所以就不解释了。

在chapter2-servlet.xml中加上这句话再添加mvc说明:xmlns:mvc="http://www.springframework.org/schema/mvc"

这样就不会有警告了。并切也能显示出来。

你可能感兴趣的:(错误笔记)