之前就想一个深拷贝的解决方案,
尝试用BeanUtils.copyProperties实现
现在发现无法实现,两个变量引用位置相同
最好自己实现一个工具类。
之前在脉脉上看到有人提问,回答是用fastjson序列化解决的
Student clone = JSONObject.parseObject(JSONObject.toJSONBytes(student), Student.class);
- copyProperties 拷贝 BeanUtils 对象copyproperties拷贝beanutils对象 copyproperties拷贝beanutils建议 物流技术copyproperties拷贝beanutils 拷贝copyproperties beanutils还是 拷贝copyproperties beanutils copyproperties beanutils copyproperties beanutils list 对象 示例 拷贝beanutils 我的女神copyproperties毒药beanutils copyproperties beanutils类型 工具