首页 > 学院 > 开发设计 > 正文

No Hibernate Session bound to thread, and configuration

2019-11-06 09:07:05
字体:
来源:转载
供稿:网友

sql语句查询报错: Caused by: org.hibernate.HibernateException: No Hibernate session bound to thread, and configuration does not allow creation of non-transactional one here

在service类中的方法名上加上注解: @Transactional


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表