Type type = new TypeToken<List<Catys>>() {
}.getType();
List<Catys> catys = new Gson().fromJson(con, type);
Gson转实体 支持泛型
阅读 51
2023-04-16
Type type = new TypeToken<List<Catys>>() {
}.getType();
List<Catys> catys = new Gson().fromJson(con, type);
相关推荐
精彩评论(0)