Could not obtain transaction-synchronized Session for current thread

**问题描述:`**
org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
at org.springframework.orm.hibernate4.SpringSessionContext.currentSession(SpringSessionContext.java:134)
at
“`
解决方案:

hibernate4不支持你用hibernate3的 getcurrentSession,建议你用openSession

你可能感兴趣的:(current,obtain,Transactio,HibernateE)