Springboot | @RequestBody 接收到的参数对象属性为null

web页面console输出:有数值

Springboot | @RequestBody 接收到的参数对象属性为null

idea显示:null

Springboot | @RequestBody 接收到的参数对象属性为null

 修正:

 

有可能是springboot解析器在解析json过程中出现问题,因字段名驼峰命名无法匹配字段名导致,加上如**解即可:@JsonProperty(value = "字段名")

Springboot | @RequestBody 接收到的参数对象属性为null