码迷,mamicode.com
首页 > 系统相关 > 详细

eclipse搭建第一个SSM项目 (二)遇到的问题

时间:2018-10-18 10:58:40      阅读:281      评论:0      收藏:0      [点我收藏+]

标签:ping   https   lips   can   htm   name   version   for   搭建   

1、Cannot change version of project facet Dynamic web module to 3.0

参考地址: https://www.cnblogs.com/gmq-sh/p/4737130.html

2、 No mapping found for HTTP request with URI [/demo] in DispatcherServlet with name ‘SpringMVC‘

参考地址: https://blog.csdn.net/qq_39966266/article/details/79387262

一般是controller类中注解@RequestMapping映射错误,

http://localhost:8080/demo/ 与 webapp/WEB-INF/welcome.jsp相对应(在web.xml中welcome-file-list配置)

http://localhost:8080/demo/test/getUser?id=1如果没有结果, 看看controller类,test与类的@RequestMapping("/test")相对应

getUser与方法的@RequestMapping("getUser")相对应,该方法的返回值result与result.jsp相对应,result.jsp在webapp/WEB-INF/jsp/

 

eclipse搭建第一个SSM项目 (二)遇到的问题

标签:ping   https   lips   can   htm   name   version   for   搭建   

原文地址:https://www.cnblogs.com/wushengwuxi/p/9808364.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!