0
点赞
收藏
分享

微信扫一扫

使用BeanUtils.copyProperties进行对象之间的属性赋值


a,b为对象
BeanUtils.copyProperties(a,  b);
1,BeanUtils是org.springframework.beans.BeanUtils, a拷贝到b
2,BeanUtils是org.apache.commons.beanutils.BeanUtils,b拷贝到a

举报

相关推荐

0 条评论