V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wsw
V2EX  ›  程序员

stream 递归构建树的时候循环依赖了?求教

  •  
  •   wsw · 2021-12-27 15:07:51 +08:00 · 1290 次点击
    这是一个创建于 841 天前的主题,其中的信息可能已经有所发展或是发生改变。

    构建树的子节点是好像出现了循环依赖,但是不知道怎么解决 image image image

    4 条回复    2021-12-29 17:27:18 +08:00
    wsw
        1
    wsw  
    OP
       2021-12-27 16:20:27 +08:00
    找到一种解决办法:数据没问题,是在返回的时候检测到循环依赖,局部取消掉 fastjson 的循环依赖检测:
    ![image]( https://user-images.githubusercontent.com/34562805/147451057-b87f7812-c976-4f85-8b75-4422d4493976.png)
    tubimasky
        2
    tubimasky  
       2021-12-28 11:09:39 +08:00
    binge921
        3
    binge921  
       2021-12-28 14:56:51 +08:00
    兄弟你这个主题好好看 推荐下
    wsw
        4
    wsw  
    OP
       2021-12-29 17:27:18 +08:00
    @binge921 atom onedark theme
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5523 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 07:34 · PVG 15:34 · LAX 00:34 · JFK 03:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.