@JsonIgnoreProperties(ignoreUnknown = true) //忽略传参时其他无用字段 @JsonInclude(JsonInclude.Include.NON_NULL) // 忽略反参时值为null的字段 public class BaseAreaBO implements Serializable { @ApiModelProperty(value = "地区code") private String areaCode;
}
@JsonIgnoreProperties(ignoreUnknown = true) //忽略传参时其他无用字段 @JsonInclude(JsonInclude.Include.NON_NULL) // 忽略反参时值为null的字段 public class BaseAreaBO implements Serializable { @ApiModelProperty(value = "地区code") private String areaCode;
}