当程序中存在多个 getEnabled 重名方法,jackson没法肯定惟一的getter函数。 能够再其中一个方法中使用 @JsonIgnore public启用getEnabled(){ return enabled; } 函数