openSession和getCurrentSession的区别?

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

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

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