@PathVariable 和 @RequestParam 区别

@PathVariable

用于接收url中传入的参数,常用语get, delete请求

@RequestParam

用于接收body中传入的参数,常用于post请求

posted @ 2023-03-31 15:47  陈省行  阅读(16)  评论(0)    收藏  举报