Infinite loop with spring-boot in a one to many relation

前端 未结 6 1849
梦谈多话
梦谈多话 2021-02-06 09:52

In a rest application, I use spring boot with jpa.

I have a class Lodger

who have

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, m         


        
6条回答
  •  清酒与你
    2021-02-06 09:56

    @JsonIgnoreProperties({"hibernateLazyInitializer","referenceList"}) at class Level
    

    For reference see this article on medium.com.

    enter image description here

提交回复
热议问题