一、请求参数(3种)
?page=1&size=10 | 普通传参 | @RequestParam |
/1/10 | url 传参 | @PathVariable |
{"page":1,"size":1} | -> json | @RequestBody |
二、返回值
Json { } -> 代表对象 [ ] -> 集合或者数组
1. [ 'a','b','c','d' ] List<String>
2. [ { "age":1... },{ "age:2..." } ] List<User>
3. [ { "age":1,stu:{name:'zhangsan' } } ] List<Person> -> Integer age,Student stu
标签:传参,...,请求,age,List,参数,返回值,size From: https://www.cnblogs.com/Rover20230226/p/17474035.html