Spring 3.1.0 中 Hibernate 4 的 SessionFactoryUtils.getSession 方法发生了什么?应该改用什么?sessionFactory.getCurrentSession() 不断给我这个异常:
org.hibernate.HibernateException: No Session found for current thread
at org.springframework.orm.hibernate4.SpringSessionContext.currentSession(SpringSessionContext.java:97)
at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:883)
有什么提示吗?