在你返回的实体类加上注解 @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) public class VAuth extends Auth { }