From ad22a9d5165952ac5ff2f1eb810ee17c07983151 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 28 Jul 2024 19:34:38 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=91=E5=85=A8=E5=B1=80=EF=BC=9AArea=20=E5=9C=A8=20IDEA=20d?= =?UTF-8?q?ebug=20=E6=97=B6=20toString=20=E6=96=B9=E6=B3=95=E6=8A=A5?= =?UTF-8?q?=E9=94=99StackOverflowError=E3=80=81=E6=8C=87=E5=AE=9A=20jackso?= =?UTF-8?q?n=20=E9=BB=98=E8=AE=A4=E5=BA=8F=E5=88=97=E5=8C=96=E6=97=B6?= =?UTF-8?q?=E5=8F=8C=E5=90=91=E5=BC=95=E7=94=A8=E7=9A=84=E5=89=8D=E5=90=91?= =?UTF-8?q?=E3=80=81=E5=90=8E=E5=90=91=E5=87=BA=E5=8F=A3=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E6=AD=BB=E5=BE=AA=E7=8E=AF=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/cn/iocoder/yudao/framework/ip/core/Area.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/yudao-framework/yudao-spring-boot-starter-biz-ip/src/main/java/cn/iocoder/yudao/framework/ip/core/Area.java b/yudao-framework/yudao-spring-boot-starter-biz-ip/src/main/java/cn/iocoder/yudao/framework/ip/core/Area.java index dcc94422a..262bc263c 100644 --- a/yudao-framework/yudao-spring-boot-starter-biz-ip/src/main/java/cn/iocoder/yudao/framework/ip/core/Area.java +++ b/yudao-framework/yudao-spring-boot-starter-biz-ip/src/main/java/cn/iocoder/yudao/framework/ip/core/Area.java @@ -1,9 +1,11 @@ package cn.iocoder.yudao.framework.ip.core; import cn.iocoder.yudao.framework.ip.core.enums.AreaTypeEnum; +import com.fasterxml.jackson.annotation.JsonManagedReference; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; +import lombok.ToString; import java.util.List; @@ -17,6 +19,7 @@ import java.util.List; @Data @AllArgsConstructor @NoArgsConstructor +@ToString(exclude = {"parent"}) // 参见 https://gitee.com/yudaocode/yudao-cloud-mini/pulls/2 原因 public class Area { /** @@ -46,10 +49,12 @@ public class Area { /** * 父节点 */ + @JsonManagedReference private Area parent; /** * 子节点 */ + @JsonManagedReference private List children; }