org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
解决方法
hibernate的配置中加上
<prop key="hibernate.current_session_context_class">thread</prop>
org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
解决方法
hibernate的配置中加上
<prop key="hibernate.current_session_context_class">thread</prop>