【无标题】关于SpringBoot中常用的三种参数请求方式@RequestParam,@PathVariable,@RequestBody
@RequestParam
支持get和post请求,get和post的url拼接写法一样,在一个接口中,可以写多个@RequestParam,在postman中举例post请求的写法,
post的链接拼接:http://localhost:8080/users/delete?id=123
对应的后端写法
get请求的url拼接:http://localhost:8080/users/delete?id=123,下面是对应的thymeleaf模板的代码
后端对应的代码
.
原创
2022-01-05 14:25:29 ·
665 阅读 ·
0 评论