Springboot @RequestBody Jackson 映射对象数据类型为Integer的属性失效问题。
第三方发application/json请求调用接口时,axisOffset属性一直为空。
加上@JsonProperty(“axisOffset”)之后问题得以解决。
@Getter
@Setter
public class ContractRequest extends Request<Response> {
/**
* 模板id
*/
private String templateFileId;
/**
* 签署区域x轴偏移量
*/
@JsonProperty("axisOffset")
private Integer axisOffset;
}