Bug库____org.hibernate.HibernateException: No Session found for current thread

@bug出现情况 1.spring整合hibernate时抽取出公共的dao和dao的实现确定没有配置错 Hibernate升级到4.x以后,在Spring中,通过Hibernate访问数据库的方法已经发生了变化, 不再是以往让自己的DAO实现类继承HibernateDAOSupport, 然后使用getHibernateTemplate()方法,操作数据库。新的模式下,只能通过从Spring注入
相关文章
相关标签/搜索