在 Spring 中本身管理 Hibernate 事務

在spring中本身控制事物,而且使用 aop 攔截事務,若是須要使用獲得當前session,則須要在 hibernate 的 xml 配置文件中添加屬性:java hibernate 版本若爲 3.x.xspring hibernate.current_thread_class=org.hibernate.context.ThreadLocalSessionContext|threadexpre
相關文章
相關標籤/搜索