openSession和getCurrentSession的区别?

1、openSession必须关闭,currentSession在事务结束后自动关闭

2、openSession没有和当前线程绑定,currentSession和当前线程绑定

posted @ 2021-02-23 08:51  信铁寒胜  阅读(139)  评论(0编辑  收藏  举报