• 请不要在回答技术问题时复制粘贴 AI 生成的内容
wsw
V2EX  ›  程序员

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

  •  
  •   wsw · Dec 27, 2021 · 2146 views
    This topic created in 1605 days ago, the information mentioned may be changed or developed.

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

    4 replies    2021-12-29 17:27:18 +08:00
    wsw
        1
    wsw  
    OP
       Dec 27, 2021
    找到一种解决办法:数据没问题,是在返回的时候检测到循环依赖,局部取消掉 fastjson 的循环依赖检测:
    ![image]( https://user-images.githubusercontent.com/34562805/147451057-b87f7812-c976-4f85-8b75-4422d4493976.png)
    tubimasky
        2
    tubimasky  
       Dec 28, 2021
    binge921
        3
    binge921  
       Dec 28, 2021
    兄弟你这个主题好好看 推荐下
    wsw
        4
    wsw  
    OP
       Dec 29, 2021
    @binge921 atom onedark theme
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4369 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 1705ms · UTC 05:32 · PVG 13:32 · LAX 22:32 · JFK 01:32
    ♥ Do have faith in what you're doing.