在 Spring 中本身管理 Hibernate 事务

在spring中本身控制事物,而且使用 aop 拦截事务,若是须要使用获得当前session,则须要在 hibernate 的 xml 配置文件中添加属性:java hibernate 版本若为 3.x.xspring hibernate.current_thread_class=org.hibernate.context.ThreadLocalSessionContext|threadexpre
相关文章
相关标签/搜索