异常描述
org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Unrecognized field “inputType”
原因
后端用@RequestBody注解接收Json实体类,但前端传来的Json中有实体类没有的字段“inputType”
解决
后端在实体类上添加注解@JsonIgnoreProperties(ignoreUnknown = true)忽略前端所传来的无效字段