查询接口,按照restful的标准,只能为get请求,参数需要为list对象类型,试过好几种都报错,用get在postman中无法用json,postman中参数应该如何填写
@GetMapping("/user/list/")
public UserListRespVo getUserList(List<Item> itemList){
}
@Data
public class Item {
private Integer id;
private Integer userId;
}
get方法请求的参数在请求时是附在api的url上的,就算你用对象也是会转成字符串的