What casuses Spring Boot Fail-safe cleanup (collections) to occur

前端 未结 5 2397
梦谈多话
梦谈多话 2021-02-20 14:35

I have a Java Spring Boot application with the following entities related to the below exception

SProduct

@Entity
@Table(
        name =         


        
5条回答
  •  無奈伤痛
    2021-02-20 14:47

    In my case it was because of entities calling each other's hashcode recursively, if you use lombock remove it and make it yourself.Put breakpoint of debugger on the methods of two hashcodes. You'll sea that they are calling each other. Remove for example from the first entity's hashcode method second entity's link.

提交回复
热议问题