SqlSession对象的commit方法
commit
SqlSession对象的rollback方法
rollback
SqlSessionFactory中的openSession()方法可以设置事务的自动提交方式openSession(true)为开启自动提交openSession(false)为关闭自动提交openSession()默认为false,为关闭自动提交
openSession(true)
openSession(false)