蓝萝卜blu Hibernate4中使用getCurrentSession报Could not o
架个spring4+hibernate4的demo,dao层直接注入的sessionFactory,然后用getCurrentSession方法获取session,然后问题来了,直接报错:Could not obtain transaction-synchronized Session for current thread提示无法获取当前线程的事务同步session,略微奇怪,这和事务有什么关系.