java.util.LinkedHashMap cannot be cast to

我的做法,是把hashmap转换为json, 再把json转换为对象.

LandInfo t1 = JSON.parseObject(JSONObject.toJSONString(landInfos.get(0),true),LandInfo.class);

猜你喜欢

转载自blog.csdn.net/chs007chs/article/details/80825022