1.得到 MyBatis 配置信息,即代码中的Configuration类 2.通过 Configuration 来创建 SqlSessionFactory 3.新建 SqlSession 来执行 SQL