BeanUtils.copyProperties使用笔记 - 代码说-Let code talk - ITeye技术网站
BeanUtils.copyProperties VS PropertyUtils.copyProperties两者最大的区别是:
BeanUtils.copyProperties会进行类型转换,而PropertyUtils.copyProperties不会。
既然进行了类型转换,那BeanUtils.copyProperties的速度比不上PropertyUtils.copyProperties。
因此,PropertyUtils.copyProperties应用的范围稍为窄一点,它只对名字和类型都一样的属性进行copy,如果名字一样但类型不一样,它会报错。
Read full article from BeanUtils.copyProperties使用笔记 - 代码说-Let code talk - ITeye技术网站
No comments:
Post a Comment