DAO中要用getCurrentSession来获得session的话,spring..._百度知道
最佳答案: 在dao里面直接使用 Session session=sessionFactory.getCurrentSession()就可以了; dao只需要直接注入sessionFactory,不需要继承hibernatedaosupport之类的; ...更多关于我在Spring中配了SessionFactory,但是用sessionFactory.getCurrentSession();这个的问题>>