openSession和getCurrentSession的区别?

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

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

原文地址:https://www.cnblogs.com/wwssgg/p/14434032.html