Tomcat and Spring MVC - No mapping found for HTTP request with URI [duplicate]
I have followed the tutorial found here to the T. And I get the error a 404 error. In eclipse the error shows as:
Aug 25, 2011 9:22:06 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound WARNING: No mapping found for HTTP request with URI [/til/] in DispatcherServlet with name 'appServlet'
In eclipse the project is titled 'til'
I am using tomcat 7. Could this be an issue with tomcat?
Your web-application is correctly getting the request based on the warning that you have shown - I think in your case you have defined the web context as "/" for your application, so that the request to http://localhost:port/til is actually being interpreted as a request for a controller with a requestmapping with a value of "/til". Try request just to the root context http://localhost:port/ and see if it works out.
精彩评论