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

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

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

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

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