sessionFactory.getCurrentSession()与sessionFactory.openSession();
摘要:https://blog.csdn.net/zhangjian_asi/article/details/53515042 简单来说 采用getCurrentSession()创建的session在commit或rollback时会自动关闭 而采用openSession()创建的session必须手动
阅读全文
posted @ 2021-03-27 14:53

浙公网安备 33010602011771号