Hibernate4中使用getCurrentSession报Could not obtain transaction-synchronized Session for current thread
摘要:
架个spring4+hibernate4的demo,dao层直接注入的sessionFactory,然后用getCurrentSession方法获取session,然后问题来了,直接报错:Could not obtain transaction-synchronized Session for cu... 阅读全文
posted @ 2015-09-17 18:20 蓝萝卜blu 阅读(31658) 评论(5) 推荐(2) 编辑