Spring JPA bi-directional cannot evaluate toString

后端 未结 3 1368
南笙
南笙 2021-02-12 13:03

I have resolved JSON recursive loop with @JsonIdentityInfothrough to Baeldung\'s blog1 (Thanks)

But now, another error occurs :

Method threw         


        
3条回答
  •  心在旅途
    2021-02-12 13:42

    Remove toString method.

    In case you are using Lombok:

    Check you Entity/DAO class you might be using @Data annotation from lombok which by default includes getter and setters. Change it to @Getters and @Setter in case you need those and remove @Data annotation.

提交回复
热议问题