老师,我访问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
多了一个/哦
00
相似问题