您的位置:首页 > 其它

identifier of an instance of com.edu.zidonghua.po.TbUser was altered from 2 to null

2013-08-25 01:53 761 查看
使用BeanUtils.copyProperties()方法copy两个对象;错误发现了: 原来使用的是org.apache.commons.beanutils.BeanUtils的copyProperties()方法 import org.apache.commons.beanutils.BeanUtils;
copyProperties(Object dest, Object orig) 第一个参数是目标对象,第二个参数是源对象;我把两个对象写反了: BeanUtils.copyProperties(bkHotKeyword,wsHotKeywordDto);

使用org.springframework.beans.BeanUtils的copyProperties()方法
import org.springframework.beans.BeanUtils;
copyProperties(Object sourth, Object target) 左边是源对象,右边是目标对象;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  identifier of an ins
相关文章推荐