contentType=application/json
1.如果请求体json:1,后台可通过属性Long id来接收,并且必须使用@RequestBody注解,否则参数依然为null
2.如果请求体json:{"id":1},后台需要用对象来接收,并且必须使用@RequestBody注解,否则参数依然为null
contentType=application/json
1.如果请求体json:1,后台可通过属性Long id来接收,并且必须使用@RequestBody注解,否则参数依然为null
2.如果请求体json:{"id":1},后台需要用对象来接收,并且必须使用@RequestBody注解,否则参数依然为null