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

Spring & Hibernate 整合异常记录:

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

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

posted @ 2018-03-31 08:40  多米之诺  阅读(91)  评论(0编辑  收藏  举报