mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	!1 【代码优化】全局:Area 在 IDEA debug 时 toString 方法报错StackOverflowError、指定 jackson 默认序列化时双向引用的前向、后向出口避免死循环报错
Merge pull request !1 from 常柯柯/N/A
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| package cn.iocoder.yudao.framework.ip.core; | ||||
|  | ||||
| import cn.iocoder.yudao.framework.ip.core.enums.AreaTypeEnum; | ||||
| import com.fasterxml.jackson.annotation.JsonBackReference; | ||||
| import com.fasterxml.jackson.annotation.JsonManagedReference; | ||||
| import lombok.AllArgsConstructor; | ||||
| import lombok.Data; | ||||
| @@ -54,7 +55,7 @@ public class Area { | ||||
|     /** | ||||
|      * 子节点 | ||||
|      */ | ||||
|     @JsonManagedReference | ||||
|     @JsonBackReference | ||||
|     private List<Area> children; | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 常柯柯
					常柯柯