在字段上加注解
@JsonProperty
@JsonIgnore
注意依赖的包 import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty;