// map转javaBean
EventSearchEntity eventSearchEntity = new EventSearchEntity();
Object obj = page.getObjList().get(0);
ObjectMapper mapper = new ObjectMapper();
try {
String json = mapper.writeValueAsString(obj);
eventSearchEntity = mapper.readValue(json, EventSearchEntity.class);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Map转换为JAVABean的方法
最新推荐文章于 2024-09-03 08:28:36 发布