上面是return对象的值 上面是apiFox测的结果 解决办法:对象实体的属性上添加注解 @JsonSerialize(nullsUsing = NullSerializer.class) (框架用的是fastJson)