springdata jpa发生java.lang.StackOverflowError: null

需求是这样的。使用springdata jpa 一对多的关联关系。User.class实体, 和Dept.class 实体, 一个用户对应一个部门,一个部门可以有多个用户。

然后出现一个如下异常:java.lang.StackOverflowError: null(堆栈溢出错误, 写代码时出现的错误)

出现栈内存溢出的常见原因有2个: 
1. 函数递归调用层次过深,每调用一次,函数的参数、局部变量等信息就压一次栈,并且没有及时出栈。 
2. 局部静态变量体积太大

2019-10-24 10:45:31.806 ERROR 3884 --- [nio-8013-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.data.redis.serializer.SerializationException: Could not write JSON: Infinite recursion (StackOverflowError) (through reference chain: com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"]->org.hibernate.collection.internal.PersistentBag[0]->com.gosuncn.springboot.bean.User["deptBean"]->com.gosuncn.springboot.bean.Dept["userList"])] with root cause

java.lang.StackOverflowError: null

出现异常的原因:如果查询一个User实体,并打印,打印调用的是toString() 方法,toString()方法里面又有关联Dept对象。 所以导致User和Dept两个对象互相调用并打印,形成一个递归调用,最后堆栈溢出。

 

解决方法:

1:重写两个实体的toString() 方法。关联对象不写进toString()方法里面。(使用lombok的@ToString(exclude={"userList"}))

2:在关联对象上,都加上一个@JsonIgnore 注解。

解决后的两个实体类代码:

User.class

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(exclude={"deptBean"})
@Entity
@Table(name = "user")
public class User implements Serializable {


    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;
    private String username;
    private String password;
    private long high;

    // optional = false 表示可选属性,此时表示dept不能为空。删除用户,不影响部门。
    @JsonIgnore   //  设置@JsonIgnore,这个注解的意思是表示在序列化的时候,忽略这个属性
    @ManyToOne(cascade = {CascadeType.MERGE,CascadeType.REFRESH}, optional = false)
    @JoinColumn(name = "dept_id")  // 设置在dept表中的关联外键
    private Dept deptBean;
    
}

Dept.class

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString(exclude={"userList"})
@Entity
@Table(name = "dept")
public class Dept implements Serializable {


    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    private String name;
    private Integer peoples;

    /**
     * mappedBy = "deptBean" 中的 deptBean 是指 User 实体中的 deptBean 属性。
     */
    //@JsonIgnore     // 设置@JsonIgnore,这个注解的意思是表示在序列化的时候,忽略这个属性
    @OneToMany(mappedBy = "deptBean", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
    private List userList;


}

User.class 的关联对象使用@JsonIgnore 这个注解,而Dept.class 的关联对象不能用@JsonIgnore 这个注解。原因是和toString()这个方法一样。有兴趣的可以研究研究。试试User对象的插入和查询,就知道了。

以上解决方法,亲测有效。。。

你可能感兴趣的:(springdata,jpa)