@PostMapping(value = "switchDefault")
public RequestResult switchDefault(@RequestBody Integer id){
deliveryAddressManager.switchDefault(id);
return RequestResult.success();
}
这是我postman调用的截图,postman调用老报错,将id封装在DTO内就能调用成功,在id上加@JsonProperty也是没用这是什么原因呢?