您的位置:首页 > 其它

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

2017-08-10 14:58 1181 查看
org.hibernate.HibernateException: save is not valid without active transaction


因为在hibernate中配置了

<!-- 配置与本地线程绑定session-->
<property name="hibernate.current_session_context_class">thread</property>

删除就好用了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  hibernate
相关文章推荐