开发者社区 问答 正文

路由配置好了,访问不成功,求助。

public void configRoute(Routes me) {
me.add("/hello", HelloController.class);
System.out.println("配置helloController");
}

启动没问题,浏览器访问http://localhost:8080/hello没有任何反应,没有进入到HelloController.index()中是什么问题呢?

展开
收起
落地花开啦 2016-05-30 13:24:41 1590 分享 版权
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    访问路径不对,没有带项目名

    2019-07-17 19:20:24
    赞同 展开评论
问答地址: