现在的位置: 首页 > 综合 > 正文

STS error: No mapping found for HTTP request with URI

2013年10月29日 ⁄ 综合 ⁄ 共 384字 ⁄ 字号 评论关闭

当使用STS, create "spring template project" 后,用web server来运行该project时,可能出现下列error:

org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/XXX/] in DispatcherServlet with name 'appServlet'

solution 1 (最简单):

在HomeController.java任意地方加一个空格,然后保存,重启web server即可.

solution 2:

http://stackoverflow.com/questions/1266303/no-mapping-found-for-http-request-with-uri-web-inf-pages-apiform-jsp

抱歉!评论已关闭.