org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
【注】:解决:上面的代码是SpringMvc的工程,错误的原因是在Service类里的方法上面没有加
org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here