第一步,导入所需jar包坐标 第二步,编写javabean 第三步,编写连接配置 第四步,编写springboot项目配置类 第五步,编写mybatis映射配置接口 第六步,集成junit测试 运行结果如下: