org.hibernate.HibernateException: Could not obtain transaction-synchronized 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)
	
posted @ 2021-12-09 13:25  MikiKawai  阅读(388)  评论(0)    收藏  举报