String clientIdString = gson.toJson(clientIdList);
List<ThirdPartEntity> thirdList = gson.fromJson(clientIdString, new TypeToken<List<ThirdPartEntity>>() {
}.getType());
gson转换list对象
最新推荐文章于 2024-07-05 13:47:27 发布
String clientIdString = gson.toJson(clientIdList);
List<ThirdPartEntity> thirdList = gson.fromJson(clientIdString, new TypeToken<List<ThirdPartEntity>>() {
}.getType());