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 @ 2015-07-03 14:26  HanleyTang  阅读(638)  评论(0编辑  收藏  举报