会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
DogElder
博客园
首页
新随笔
联系
订阅
管理
2020年5月23日
自用留档
摘要: SpringBoot不返回 Null 字段,设置某些字段不返回前端 第一种方法:在类的上面加注解 @JsonInclude(JsonInclude.Include.NON_NULL) 第二种方法:在配置文件中声明 spring: jackson: default-property-inclusion
阅读全文
posted @ 2020-05-23 15:49 DogElder
阅读(183)
评论(0)
推荐(1)
编辑
公告