将
@JsonIgnoreProperties("fieldname")注释添加到你的POJO。或者,你可以
@JsonIgnore在反序列化JSON时在要忽略的字段名称之前使用。例:
@JsonIgnore@JsonProperty(value = "user_password")public java.lang.String getUserPassword() { return userPassword;}
将
@JsonIgnoreProperties("fieldname")注释添加到你的POJO。或者,你可以
@JsonIgnore在反序列化JSON时在要忽略的字段名称之前使用。例:
@JsonIgnore@JsonProperty(value = "user_password")public java.lang.String getUserPassword() { return userPassword;}