开发者

Tomcat and Spring MVC - No mapping found for HTTP request with URI [duplicate]

This question already has answers here: 开发者_JS百科 Why does Spring MVC respond with a 404 and report "No mapping found for HTTP request with URI [...] in DispatcherServlet"? (13 answers) Closed 6 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜