摘要: hibernate 的SessionFactory的getCurrentSession 与 openSession() 的区别 1 getCurrentSession创建的session会和绑定到当前线程,而openSession不会。 2 getCurrentSession创建的线程会在事务回滚或 阅读全文
posted @ 2017-10-13 18:32 陈陈chenchen 阅读(814) 评论(0) 推荐(0) 编辑