No mapping found for HTTP request with URI问题解决

出现类似的错误问题:

org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI

[/.../.../.../***.do] in DispatcherServlet with name 'spring'

之前还运行的好好的,新建了工程就报这个错误,现在已经解决。

归根结底是请求路径不对。

我的问题是检查出package包名被改了,与spring配置里的<context:component-scan base-package="com.abc.abc.*" />对不上,更改包名后解决。

特此记录。

原文地址:https://www.cnblogs.com/wuhu/p/8522366.html