springmvc框架搭建的时候出现No mapping found for HTTP request with URI [/xxxx/item/itemlist.action] in DispatcherServlet with name 'springmvc'错误,百度找了好多都没有解决,最后发现是tomcat里面没有.class文件,醉了,再发现eclipse该项目工作空间里面也没有.class文件,才发现原来是eclipse编译出现问题了,可能是昨晚关闭eclipse的时候同时间关机了,导致工具不正常了,解决方法是:
1.先保证project->build automatically自动编译勾选上,
2.project->clean一下该项目已经编译的文件,
3.取消勾选project->build automatically取消勾选自动编译功能,
4.再.project->clean一下该项目,这时会自动编译文件到项目中,
5.再勾选project->build automatically自动编译勾选上。
6.重新发布项目到tomcat中,会发现框架已经正常运行。
个人小问题,只能自己摸索,浪费好多时间哎。