SpringBoot 传入JSON对象参数

1.请求参数格式必须是正确的JSON。

2.在入参中使用注解@RequestBody,用于接收JSON参数,使其自动转对象

你可能感兴趣的:(spring)