My java.lang.StackOverflowError: null problem

jpa entity classes are used throughout the @Data notes, tostring entity class method will rewrite the comment, and I have this entity class and have relationships with other tables, run on the following error

 

 

Baidu is not a lot of me this question, ask a friend about my big brother, he said association table can not rewrite tostring, (as to why not, I Baidu did not find the answer, big brother who can advise about) then I put all the @Data removed to be rewritten into @Getter and @Setter getter setter method,

Then it solved. Feel good stupid question, ah, do me more than an hour.

Guess you like

Origin www.cnblogs.com/ZeroLife/p/12067987.html