在整合spring4,hibernate4的时候,在dao层获取session报错:
org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
代码中的写法是:
然后我上网查了好多资料,大多都说要使用getCurrentSess...
"
在整合spring4,hibernate4的时候,在dao层获取session报错:
org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
代码中的写法是:
然后我上网查了好多资料,大多都说要使用getCurrent...