摘要:
@GetMapper 实现有参数和无参数同时访问 @GetMapper 实现有参数和无参数同时访问 在使用@GetMapper时,写过下面的代码: @GetMapping("/getBincodeType/{whCode}") public Result getBincodeType(@PathVa 阅读全文
posted @ 2020-09-12 12:39
红无酒伤
阅读(925)
评论(0)
推荐(0)
摘要:
转:https://blog.csdn.net/suki_rong/article/details/80445880 第一类:请求路径参数 1、@PathVariable 获取路径参数。即url/{id}这种形式。 2、@RequestParam 获取查询参数。即url?name=这种形式 例子 G 阅读全文
posted @ 2020-09-12 10:15
红无酒伤
阅读(353)
评论(0)
推荐(0)
浙公网安备 33010602011771号