BeanUtils.cloneBean() deep copy

前端 未结 3 1314
走了就别回头了
走了就别回头了 2021-02-12 13:37

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

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-12 14:22

    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

提交回复
热议问题