老师,我访问localhost://hello返回Could not get any response

来源:4-8 JWT修改测试和总结

Moss1105

2019-11-20

访问http://localhost/auth?userName=admin&password=admin123成功,但是访问localhost://hello返回Could not get any response。

下图是用postman发送请求的页面
图片描述

ExampleController的内容如下,而且debug的时候也没进入到ExampleController 里面。

@Controller
@RequestMapping("/hello")
public class ExampleController {

    @RequestMapping("")
    public ResponseEntity hello() {
        //   System.out.println(simpleObject.getUser());
        System.out.println(CurrentUser.getCurrentUser());
        return ResponseEntity.ok("请求成功!");
    }
}

返回信息
图片描述

后台也没有报错
图片描述

我看了三遍视频,都没找到我哪里出错了。

写回答

1回答

Allen

2019-11-21

多了一个/哦

0
0

Dubbo主流版本打造仿猫眼项目 理解微服务核心思想

实战Dubbo项目+面试技巧,老司机带你畅游微服务

1410 学习 · 582 问题

查看课程