【错误7】:No mapping found for HTTP request with URI [/VerifyCodeDemo/rest/demo/verifys] in DispatcherSe

警告信息:No mapping found for HTTP request with URI [/VerifyCodeDemo/rest/demo/verifys] in DispatcherServlet with name ‘spring-mvc’
【错误7】:No mapping found for HTTP request with URI [/VerifyCodeDemo/rest/demo/verifys] in DispatcherSe
web.xml、spring-mvc.xml(配置文件)、URL路径都没有错误时,浏览器报404错误。
【错误7】:No mapping found for HTTP request with URI [/VerifyCodeDemo/rest/demo/verifys] in DispatcherSe

造成原因:项目下的target/classes文件夹没有.classes,即没有编译成功,所以tomcat中的项目读取不到.classes。
解决方案:
1.eclipse工具栏,project->clean…->选第2个clean projects selected below,选中该项目,然后点击ok重新编译。
2.如果第1点还编译不出.classes,请重启eclipse。