使用 org.springframework.beans.BeanUtils.copyProperties(Object source, Object target) 方法拷贝,拷贝方案是浅拷贝。

BeanUtils.copyProperties(source,dest) 浅拷贝

BeanUtils.copyProperties(source,dest) 浅拷贝

执行结果:

BeanUtils.copyProperties(source,dest) 浅拷贝

相关文章: