No Session found for current thread

Spring 3 + Hibernate 4 整合异常:       Exception in thread "main" org.hibernate.HibernateException: No Session found for current thread 缘由:在于设置该方法不开启事物,因此没法获取到 Session,在之前的版本中是能够不开启事物的   @Transaction
相关文章
相关标签/搜索