1.JsonIgnoreProperties(ignoreUnknown = true) 在spring boot转换从序列化时,忽略类中不存在的字段,也可以指定忽略字段@JsonIgnoreProperties({ “password”, “secretKey” })