@JsonInclude(JsonInclude.Include.NON_NULL)

属性值为null的不参与序列化

猜你喜欢

转载自blog.csdn.net/weixin_42844971/article/details/85596338