hibernate(nested transactions not supported)异常
生活随笔
收集整理的這篇文章主要介紹了
hibernate(nested transactions not supported)异常
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
org.hibernate.TransactionException: nested transactions not supported錯誤的解決方法!
原因:事務沒有提交,事務提交后正常
Transaction tx = session.beginTransaction();
tx.commit(); //缺少這句話
轉載于:https://www.cnblogs.com/lmq-1048498039/p/6941153.html
總結
以上是生活随笔為你收集整理的hibernate(nested transactions not supported)异常的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [Leedcode][JAVA][第91
- 下一篇: [Java]集合的小抄 Java初学者必