BeanUtils.cloneBean() deep copy

前端 未结 3 1452
北海茫月
北海茫月 2021-02-12 13:57

If all the objects within the bean implement Serializable interface, will BeanUtils.cloneBean() do a deep copy?

3条回答
  •  渐次进展
    2021-02-12 14:05

    There is also another java library which supports both shallow cloning and deep cloning. It offers deep cloning without the need to implement Serializable.

    Here

提交回复
热议问题