Loading

摘要: postman发送请求时,报错信息如上。 原因在于:类User Info和Role使用OneToMany时,类UserInfo中用了懒加载fetch=FetchType.LAZY,导致在类UserInfo中取List<Role>时,加载数据的session已经关闭,出现报错。 解决方法: 别人的答案 阅读全文
posted @ 2019-05-26 09:36 yoyuLiu 阅读(5218) 评论(0) 推荐(0) 编辑