gson转换list对象

String clientIdString = gson.toJson(clientIdList);
List<ThirdPartEntity> thirdList = gson.fromJson(clientIdString, new TypeToken<List<ThirdPartEntity>>() {
}.getType());

猜你喜欢

转载自blog.csdn.net/u010899138/article/details/51722889