spring、hibernate整合異常
作者:張勇波
博主發(fā)表的文章,有的是自己原創(chuàng),有的是這些年本人從網(wǎng)上積累的,方便大家學(xué)習(xí)。
no session found for current thread
save is not valid without active transaction
將事物處理與sessionFactory分2個(gè)文件寫
sessionFactory和數(shù)據(jù)庫(kù)hibernate配置在一起
- <tx:annotation-driven transaction-manager="transactionManager”/>與spring配置在一起
【本文是51CTO專欄作者張勇波的原創(chuàng)文章,轉(zhuǎn)載請(qǐng)通過51CTO獲取作者授權(quán)】
責(zé)任編輯:武曉燕
來源:
上下求索的Z先生博客