org.springframework.transaction.TransactionSystemException:
Could not commit Hibernate transaction; nested exception is org.hibernate.TransactionException: Transaction not successfully started
把
Session session = getHibernateTemplate().getSessionFactory().getCurrentSession();
改为
Session session = getHibernateTemplate().getSessionFactory().openSession();
完整代码如下:
Hibernate批量更新异常
猜你喜欢
转载自tanweneye.iteye.com/blog/2105167
今日推荐
周排行