Unable to evaluate the expression Method threw 'org.hibernate.LazyInitializationException' exception.
错误
实体类当前字段关系为 OneToMany。
@OneToMany(mappedBy = "userId")
private Set<TtUserSignIn> signInIds = new HashSet<>();
解决方案
加入 fetch = FetchType.EAGER ,然后在运行不会报错了。
@OneToMany(mappedBy = "userId",fetch = FetchType.EAGER)
private Set<TtUserSignIn> signInIds = new HashSet<>();