【java】字段值为null,不返回该字段

类上打注解
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class GetSalaryInfoResponse {
    private String payDate;
}

 

展开阅读全文

没有更多推荐了,返回首页