org.springframework.orm.hibernate5.HibernateSystemException: getFlushMode is not valid without active transaction;
nested exception is org.hibernate.HibernateException: getFlushMode is not valid without active transaction
整合SSH报的异常,包也都导入了,事务也配置好了,最后报错.因为hibernate.cfg.xml文件是复制过来改的,
原来在hibernate的核心配置文件中,加入了session绑定当前线程的属性,
删除<property name="current_session_context_class">thread</property>就可以.