springmvc报404错误No mapping found for HTTP request with URI [/mavenSpringmvc/requesttest] in Dispatche

Posted wishriver

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了springmvc报404错误No mapping found for HTTP request with URI [/mavenSpringmvc/requesttest] in Dispatche相关的知识,希望对你有一定的参考价值。

 

问题404错误的原因有很多种

有这种,后边不带url的

这种一般就是没有进入到controller中

可以在toncat中看到信息

 

十一月 12, 2018 12:21:25 下午 org.springframework.web.servlet.DispatcherServlet noHandlerFound
警告: No mapping found for HTTP request with URI [/mavenSpringmvc/requesttest] in DispatcherServlet with name \'spring\'

 

查看controller

请求确实无法匹配

修改为

问题解决

 

以上是关于springmvc报404错误No mapping found for HTTP request with URI [/mavenSpringmvc/requesttest] in Dispatche的主要内容,如果未能解决你的问题,请参考以下文章