摘要: SpringBoot不返回 Null 字段,设置某些字段不返回前端 第一种方法:在类的上面加注解 @JsonInclude(JsonInclude.Include.NON_NULL) 第二种方法:在配置文件中声明 spring: jackson: default-property-inclusion 阅读全文
posted @ 2020-05-23 15:49 DogElder 阅读(183) 评论(0) 推荐(1) 编辑