在调用HibernateTemplete.getSessionFactory.getCurrentSession()时发上以上异常的原因为
LocalSessionFactoryBean的hibernateProperties的以下属性没有配置
<prop key=''hibernate.current_session_context_class">thread</prop>
在调用HibernateTemplete.getSessionFactory.getCurrentSession()时发上以上异常的原因为
LocalSessionFactoryBean的hibernateProperties的以下属性没有配置
<prop key=''hibernate.current_session_context_class">thread</prop>