StackOverflowError栈溢出错误一般栈溢出是因为在某个class A中调用了class A.所以就陷入了死循环. 问题的基本原理如下:
@ManyToOne(fetch = FetchType.LAZY)@JoinColumn(name = "to_id", nullable = false)@JsonIgnorepublic User getUserByToId() {return this.userByToId;}