报错:org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
原因:没有配置事务,在hibernate的xml文件中配置,或者在Spring 对应的方法上通过注解配置@Tansaction