spring4+hibernate4事務

線程中的事務,好比後臺task須要sessionFactory.getCurrentSession();java 會報錯session Could not obtain transaction-synchronized Session for current thread 能夠在線程啓動前加上,而後結束時提交事務 HibernateTransactionManager transactionMan
相關文章
相關標籤/搜索