0
点赞
收藏
分享

微信扫一扫

Gson转实体 支持泛型

覃榜言 2023-04-16 阅读 51


Type type = new TypeToken<List<Catys>>() {
        }.getType();
 List<Catys> catys = new Gson().fromJson(con, type);

举报

相关推荐

0 条评论