使用SpringDataJPA和lombok注解的栈溢出问题

因为Lombok自动生产了hashCode 和 toString
在两个表互相引用时会产生死循环
只需要把@Data注解换成@Getter和@Setter即可。

猜你喜欢

转载自blog.csdn.net/qq_41112238/article/details/106172367