JackSon注解

版权声明:本文为博主原创文章,转载注明出处。 https://blog.csdn.net/Adonis_D_Gogh/article/details/82019069

1、不返回null值字段

@JsonInclude(JsonInclude.Include.NON_NULL)

2、忽略,不返回该字段

@JsonIgnore
    private Integer age;

猜你喜欢

转载自blog.csdn.net/Adonis_D_Gogh/article/details/82019069