org.hibernate.HibernateException: save is not valid without active transaction
因为在hibernate中配置了
<!-- 配置与本地线程绑定session--> <property name="hibernate.current_session_context_class">thread</property>
删除就好用了
org.hibernate.HibernateException: save is not valid without active transaction
因为在hibernate中配置了
<!-- 配置与本地线程绑定session--> <property name="hibernate.current_session_context_class">thread</property>
删除就好用了