ICode9

精准搜索请尝试: 精确搜索
  • fastjson中$ref循环引用2022-08-15 22:34:35

    问题描述:    当我们使用fastjson工具包的方法转换成字符串时,我们发现转换后的字符串不正确,出现了$ref,如图 为啥会出现$ref:    这是因为我们对象出现了重复引用,待转换的对象有不同内部变量指向了同一个对象。 public class User { private String userName; public

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有