JAVA对象之间属性复制BeanUtils.copyProperties

https://blog.csdn.net/weixin_39723337/article/details/101798243

import org.springframework.beans.BeanUtils;

BeanUtils.copyProperties(源对象, 目标对象);

必须有get、set方法

 

posted @ 2020-09-30 17:37  halo623  阅读(689)  评论(0编辑  收藏  举报