会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
document.write("");
tbUoky
博客园
首页
新随笔
联系
订阅
管理
2023年2月7日
Gson toJson 忽略 long 为 0的数据
摘要: 起因于数据id过大,所以将对应int , Integer都修改为long, 测试过程中发现 Gson toJson时,字段将int为0的数据忽略,但long 没有, 所以 1. 新增适配器 import com.google.gson.TypeAdapter; import com.google.g
阅读全文
posted @ 2023-02-07 15:46 人间春风意
阅读(57)
评论(0)
推荐(0)
编辑
公告