摘要: 前言:1 getCurrentSession创建的session会和绑定到当前线程,而openSession不会。 2 getCurrentSession创建的线程会在事务回滚或事物提交后自动关闭,而openSession必须手动关闭 这里getCurrentSession本地事务(本地事务... 阅读全文
posted @ 2015-11-27 16:53 wandy丶 阅读(3014) 评论(0) 推荐(0) 编辑