java 对象拷贝

154 阅读1分钟

同个Class:
对象拷贝:没有新对象
浅拷贝:有新对象,引用类型域修改会互相影响
深拷贝:递归浅拷贝,耗时

不同Class:
BeanUtils.copyProperties(source, target);