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