今天,搭建了一个SSM小项目
项目目录如下:
项目成功启动无报错,可以访问到项目的index.jsp
在index.jsp中加入了一个超链接标签(下图的红色框),点击测试访问controller中的方法
点击数据字典超链接后 前端页面报404,控制台日志出现如下日志:
2018-01-26 11:02:20 [org.springframework.web.servlet.DispatcherServlet]-[DEBUG] DispatcherServlet with name 'SpringMVC' processing GET request for [/ott-cms-project/dictionary/view_dictionary]
2018-01-26 11:02:20 [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping]-[DEBUG] Looking up handler method for path /dictionary/view_dictionary
2018-01-26 11:02:20 [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping]-[DEBUG] Did not find handler method for [/dictionary/view_dictionary]