@GetMapping

GetMapping 注解已经默认封装了@RequestMapping(method = RequestMethod.GET)

所以,比前文 使用 @RequestMapping(path = “/{city_id}/{user_id}”,method = RequestMethod.GET) 更方便

猜你喜欢

转载自blog.csdn.net/xnmahahd/article/details/114594046