码迷,mamicode.com
首页 > Web开发 > 详细

org.hibernate.HibernateException: getFlushMode is not valid without active transaction

时间:2015-07-03 15:36:37      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:

Spring & Hibernate 整合异常记录:

org.hibernate.HibernateException: getFlushMode is not valid without active transaction

原因 <prop key="hibernate.current_session_context_class">thread</prop> 注释该配置即可。

org.hibernate.HibernateException: getFlushMode is not valid without active transaction

标签:

原文地址:http://www.cnblogs.com/hanleytang/p/4618562.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!