BeanUtils.cloneBean() deep copy

前端 未结 3 1453
北海茫月
北海茫月 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

    No, cloneBean() does shallow copy only. If you want deep copy. You may refer this link which has technique to do deep copy.

提交回复
热议问题