本章小结

本章在 Spring Boot 项目中集成了 MyBatis,通过 MyBatis 提供的 starter 可以很方便地实现集成。通过对 MybatisProperties 配置类的介绍,我们了解到了在 Spring Boot 中实现 MyBatis 各项配置的方法,最后通过后实际的例子学会了如何在 Spring Boot 中开发 Mapper 接口。通过引入 simple 项目使用已有的 Mapper,我们明白了一件事:在任何框架中使用 MyBatis 都只是配置不同而已,其核心用法是一样的,因此学会 MyBatis 的用法才是最主要的。