After 2 months, I have eaten 80% of the "Mybatis Practical Notes", and my monthly salary will increase by 5k directly!

Preface

What is Mybatis?

MyBatis is an excellent persistence layer framework that supports customized SQL, stored procedures, and advanced mapping. MyBatis avoids almost all JDBC code and manual setting of parameters and obtaining result sets. MyBatis can use simple XML or annotations native configuration and mapping information interface and Java POJOs(Plain Ordinary Java Object,普通的 Java对象)records mapped to the database.

What are the characteristics of Mybatis?

  • Simple and easy to learn : itself is small and simple. Without any third-party dependencies, the simplest installation is only two jar files + configuration of several sql mapping files. It is easy to learn and easy to use. Through the documentation and source code, you can fully grasp its design ideas and implementation.
  • Flexible : Mybatis does not impose any influence on the existing design of the application or database. sql is written in xml, which is convenient for unified management and optimization. Through the sql statement can meet all the needs of operating the database.
  • Uncoupling SQL and program code : By providing a DAO layer, business logic and data access logic are separated, making the system design clearer, easier to maintain, and easier to unit test. The separation of sql and code improves maintainability.
  • Provide mapping tags, support object and database orm field relationship mapping
  • Provide object-relational mapping tags, support object-relationship formation and maintenance
  • Provide xml tags, support writing dynamic sql

After reading the above, do you understand Mybatis?

Today I bring you this long treasured item that I got from the Goose Factory T3-2 boss ‘mybatis实战笔记’. This note provides a systematic and comprehensive introduction to Mybatis related knowledge. Therefore, it can help Mybatis beginners to get started quickly and improve. At the same time, there are a large number of actual combat and knowledge maps to lead everyone to learn and analyze Mybatis in a simple way .

What's more, the notes also include some Mybatis interview questions and analysis that some top-tier manufacturers often ask !

ps: Due to the large amount of content, the part will be displayed this time. If you don't want to see it, you can learn more about Mybatis at the end of the article if you want to learn more about this note.

Let's take a look at the true face of Lushan in this "Mybatis Actual Combat" notebook!

Catalog section

Mybatis source code mind map

text

Chapter One Mybatis Quick Start

  1. Why do you need an ORM framework
  2. Mybatis quick start

Chapter 2 Key Points of Mybatis Development

  1. resultType or resultMap
  2. How to pass multiple parameters?
  3. How to get the primary key?
  4. SQL elements and SQL parameters
  5. Dynamic SQL
  6. Code generator
  7. Associated query
  8. Cache

Chapter 3 Overview of Mybatis Source Code

  1. How to download Mybatis source code?
  2. Source code framework analysis
  3. Appearance mode (facade mode)
  4. Six design principles to be followed in object-oriented design

Chapter 4 Log Module Analysis

  1. Log module demand analysis
  2. Adapter mode
  3. How to implement priority loading of log components
  4. Proxy mode and dynamic proxy
  5. Elegantly enhanced log function

Chapter 5 Data Source Module Analysis

  1. Simple factory pattern
  2. Factory mode
  3. Data source creation
  4. Analysis of Database Connection Pool Technology

Chapter 6 Cache Module Analysis

  1. demand analysis
  2. Decorator mode
  3. Use of decorators in cache modules
  4. The unique identifier of the cache CacheKey

Chapter 7 Reflection Module Analysis

Chapter 8 Overview of Mybatis Process

Chapter 9 The first stage: configuration loading stage

  1. Builder mode
  2. Configure the loaded core class
  3. Configuration loading process

Chapter 10 The second stage: the agent encapsulation stage

  1. The interface layer of Mybatis
  2. binding module analysis

Chapter 11 Phase Three: Data Access Phase

  1. About the Executor component
  2. Template mode in Executor
  3. Three important brothers of Executor
  4. About StatementHandler
  5. About ResultHandler

Chapter 12 Principles of Combination with Spring

  1. Mybatis-What is Spring
  2. Mybatis-Spring integrated configuration best practices
  3. Mybatis-Spring integration principle analysis

Chapter 13 Plug-in Development

  1. Understand the plugin
  2. Quick start for plug-in development
  3. Chain of Responsibility Model
  4. Plug-in module source code analysis

Chapter 14 Mybatis Interview Questions Collection

At last

Access: This is required "Mybatis real notes" please a key triple after adding assistants get little sister, [please note when adding Mybatis combat ] the full download path way.

One-click three consecutive hands to leave a lingering fragrance, I wish the little friends who have finished watching the high-paid offers will not stop!

Guess you like

Origin blog.csdn.net/Java_Caiyo/article/details/115348969