MyBatis: From Beginner to Expert
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已掌握 Java 基础语法、正准备系统学习 MyBatis 的在校学生与初级开发者
- 使用过 SSM 或 Spring Boot 框架、希望深入理解 MyBatis 原理的后端工程师
- 需要为项目设计持久层方案、关注分页插件与缓存策略的技术负责人
- 想通过源码与测试用例提升框架阅读能力的进阶学习者
Not a good fit for
- 完全没有 Java 与 SQL 基础、需要先补语言学起的零基础读者
- 更关注 JPA/Hibernate 等全自动 ORM 框架的开发者
- 只想要速查手册、不愿动手搭建示例工程的人
Reading tips
- 建议边读边敲:按章节顺序在本机搭建 Maven 项目,运行书中示例并自行修改 SQL 验证结果。
- 第4章动态 SQL 与第8章插件开发可反复精读,把常用标签与拦截器签名整理成自己的速查笔记。
- 读缓存与集成章节时,最好配一个真实小项目迁移练习,体会配置差异与踩坑点。
- 最后再读第11章源码部分,重点跟进一条增删改查的完整调用链,不必逐行通读。
About the publisher
The Publishing House of Electronics Industry is a comprehensive publisher distinguished by its focus on electronic information and related fields. Judging from the more than 3,000 titles in its catalogue, its publishing covers programming and design, artificial intelligence, computer science, finance and economics, photography, and social sciences, attending both to cutting-edge technology and to general readers. Representative titles include Factor Investing: Methods and Practice, x86 Assembly Language: From Real Mode to Protected Mode, The RISC-V Reader, Artificial Intelligence: Speech Recognition, Understanding and Practice, Phased Array Radar Technology, Radar Target Characteristics, and 100 Go Mistakes and How to Avoid Them, most of which centre on technical methods and engineering practice. Its authors include Shi Chuan, Li Zhong, Wang Xiaobo, David Patterson, Andrew Waterman, and Yu Zihao, among others from China and abroad. Owing to limited public information, no further publishing features are elaborated here.
Contents
- Chapter 1 Getting Started with MyBatis (Introduction to MyBatis, Creating a Maven Project, Simple Configuration to Get MyBatis Running)
- Chapter 2 Basic Usage of MyBatis in XML (Permission Control Requirements, select/insert/update/delete, Multiple Interface Parameters, Implementation Principle of Mapper Interface Dynamic Proxies)
- Chapter 3 Basic Usage of MyBatis with Annotations (@Select, @Insert, @Update and @Delete, Provider Annotations)
- Chapter 4 MyBatis Dynamic SQL (if, choose, where/set/trim, foreach, bind, Multi-Database Support, OGNL)
- Chapter 5 MyBatis Code Generator (Detailed XML Configuration, Configuration Reference Examples, Running MyBatis Generator, Introduction to Example)
- Chapter 6 Advanced MyBatis Queries (Advanced Result Mapping, Stored Procedures, Using Enums or Other Objects)
- Chapter 7 MyBatis Cache Configuration (First-Level Cache, Second-Level Cache, Integrating EhCache, Integrating Redis, How Dirty Data Arises and How to Avoid It, When to Use Second-Level Cache)
- Chapter 8 MyBatis Plugin Development (Interceptor Interface and Signature, Underscore-to-CamelCase Plugin, Pagination Plugin)
- Chapter 9 Integrating MyBatis with Spring (Maven Web Project, Integrating Spring and Spring MVC, Integrating MyBatis, Examples)
- Chapter 10 Integrating MyBatis with Spring Boot (Basic Spring Boot Project, Integrating MyBatis, MyBatis Starter Configuration, Simple Examples)
- Chapter 11 The MyBatis Open-Source Project (Getting Started with Git, Getting Started with GitHub, Explaining the MyBatis Source Code, MyBatis Test Cases)
- Appendix Type Handlers (TypeHandler)
FAQ
这本书适合零基础学习 MyBatis 吗?
书中的示例代码使用什么版本的技术栈?
这本书和市面上其他 MyBatis 书有什么区别?
读完能直接上手公司项目吗?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.