@JsonIgnore 加上这个之后为了不返回某个字段,但是也不能接收从前端传入的值 改为: @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)