Chinaunix首页 | 论坛 | 博客
  • 博客访问: 27207
  • 博文数量: 30
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 345
  • 用 户 组: 普通用户
  • 注册时间: 2019-10-28 13:40
文章分类
文章存档

2020年(8)

2019年(22)

我的朋友

分类: Java

2019-12-06 17:00:07


如果为注释掉的写法的话运行结果为


目标数组元素:[{"sec2":"des2","sec1":"sec1"},{"sec4":"sec4","sec3":"sec3"}]
目标数组元素:[{"sec2":"des2","sec1":"sec1"},{"sec2":"des2","sec4":"sec4","sec3":"sec3"}]
目标数组元素:[{"sec2":"des2","sec1":"sec1"},{"sec2":"des2","sec4":"sec4","sec3":"sec3"}]
目标数组元素:[{"sec2":"des2","sec1":"sec1"},{"sec2":"des2","sec4":"sec4","sec3":"sec3"}]
目标数组元素:[{"sec2":"des2","sec1":"sec1"},{"sec2":"des2","sec4":"sec4","sec3":"sec3"}]
目标数组元素:[{"sec2":"des2","sec1":"sec1"},{"sec2":"des2","sec4":"sec4","sec3":"sec3"}]
源数组元素:[{"sec2":"des2","sec1":"sec1"},{"sec2":"des2","sec4":"sec4","sec3":"sec3"}]


用后边的这种流的方式MT4使用教程才是深度拷贝(使用序列化方法)


目标数组元素:[{"sec2":"des2","sec1":"sec1"},{"sec4":"sec4","sec3":"sec3"}]
目标数组元素:[{"sec2":"des2","sec1":"sec1"},{"sec2":"des2","sec4":"sec4","sec3":"sec3"}]
目标数组元素:[{"sec2":"des2","sec1":"sec1"},{"sec4":"sec4","sec3":"sec3"}]
目标数组元素:[{"sec2":"des2","sec1":"sec1"},{"sec2":"des2","sec4":"sec4","sec3":"sec3"}]
目标数组元素:[{"sec2":"des2","sec1":"sec1"},{"sec4":"sec4","sec3":"sec3"}]
目标数组元素:[{"sec2":"des2","sec1":"sec1"},{"sec2":"des2","sec4":"sec4","sec3":"sec3"}]
源数组元素:[{"sec2":"sec2","sec1":"sec1"},{"sec4":"sec4","sec3":"sec3"}]


注意  引入的为





   com.alibaba
   fastjson
   1.2.58



阅读(3839) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
请登录后评论。

登录 注册