Springboot使用jackson或fastjson时不过滤null值

在属性上加上注解

@JSONField(serialzeFeatures= {SerializerFeature.WriteMapNullValue})
posted @ 2021-06-24 15:35  immortal_mode  阅读(528)  评论(0)    收藏  举报