No mapping found for HTTP request with URI解决方案
错误名称: No mapping found for HTTP request with URI [/SpringMVC_a_hello/hello] in DispatcherServlet with name 'spring'
注:非注解方式
思路:出现这个错误说明spring配置文件路径以及配置没有问题;可能造成下列错误的原因:
一,没有配置<bean name="" class="">或者配置错误
二,没有配置下列内容
<!-- 对静态资源文件的访问 没搞懂,在demo中没看到 -->
<mvc:default-servlet-handler/>
这个错误出现频率非常高,也是我学习spring mvc遇见的第一个错误,希望这篇文章能帮助你们.
浙公网安备 33010602011771号