您的位置:首页 > 编程语言 > Java开发

Eclipse Java注释模板设置详解

2014-10-10 13:27 441 查看
ObjectMapper mapper = new ObjectMapper();
if (mapping != null) {
try {
UserPictureBo o = new UserPictureBo();
if (mapping.getUserPictuerText() != null) {
o = mapper.readValue(mapping.getUserPictuerText(), UserPictureBo.class);
}
BeanUtils.copyProperties(o, userPictureBo);
BeanUtils.copyProperties(mapping, userPictureBo, new String[] { "pictureNormalUrl", "pictureBigUrl", "pictureSmallUrl" });
} catch (JsonParseException e) {
e.printStackTrace();
} catch (JsonMappingException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
return userPictureBo;
}

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: