hibernate(nested transactions not supported)异常

org.hibernate.TransactionException: nested transactions not supported错误的解决方法!

原因:事务没有提交,事务提交后正常

Transaction tx = session.beginTransaction();

tx.commit(); //缺少这句话

posted on 2017-06-04 17:25  玄门主宰  阅读(472)  评论(0编辑  收藏  举报

导航