首页 > 代码库 > hibernate(nested transactions not supported)异常

hibernate(nested transactions not supported)异常

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

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

Transaction tx = session.beginTransaction();

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

hibernate(nested transactions not supported)异常