nested exception is org.hibernate.HibernateException: No Session found for current thread

spring+hibernate集成是出现 No Session found for current thread问题。spring

查了一下相关资料,才知道,原来要在spring中使用Hibernate的Session,须要在配置文件中申明事务。全部的操做都必须在事物中进行hibernate

相关文章
相关标签/搜索