源生活老师,您好!
程序正常启动,http://localhost:8081/dianping会出现 Hello World!页面。
但是输入http://localhost:8081/dianping/index时,出现HTTP Status 404 – Not Found
controller代码如下:
@Controller @RequestMapping("/index") public class IndexController { public String init(){ return "/system/index"; } }
我怀疑是不是我开发环境设置不正确?
【毕设】SSM全面梳理,前后端分离,zTree 和复杂SQL打造权限系统,解惑MyBatis和RESTful
了解课程