org.hibernate.HibernateException: Could not obtain transactionsynchronized Session for current thread

  • hibernate 执行插入修改删除需要事务操作
org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread

	at org.springframework.orm.hibernate5.SpringSessionContext.currentSession(SpringSessionContext.java:142)
	at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:495)
	
原文地址:https://www.cnblogs.com/zk2020/p/15666758.html