This book starts with a simple MyBatis query to build a basic development environment for learning MyBatis. Through a comprehensive sample code and test, the basic usage of adding, deleting, modifying, and checking operations in the MyBatis XML mode and annotation mode is explained, and the application of dynamic SQL in different aspects and the best practice program in the use process are introduced. Provides a wealth of examples for MyBatis advanced mapping, stored procedures, and type processors. Through a bottom-up approach, readers can better understand and master the advanced usage of MyBatis. At the same time, a detailed configuration introduction is provided for the code generator of MyBatis. . In addition, the book also provides detailed content for cache configuration, plug-in development, Spring, and Spring Boot integration. Finally, we introduce Git and GitHub to let readers understand the MyBatis open source project.