表示在序列化Person时,将值为null的字段排除掉:
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Person {
表示在序列化Person时,将值为null的字段或者空的字符串字段排除掉:
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class Person {
表示在序列化Person时,将值为null的字段排除掉:
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Person {
表示在序列化Person时,将值为null的字段或者空的字符串字段排除掉:
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class Person {