baomidou /mybatis-plus

An powerful enhanced toolkit of MyBatis for simplify development

★ 17,484⑂ 4,433👁 79⑃ 1,213● 5,818▤ 43
JavaApache-2.0Created 2016-08-18baomidou.com
Download: v3.5.18.1v3.5.18.1 ↓3.5.18.12026-10-27
-1
Daily
17,484
stars
4,433
forks
79
watchers
1,213
prs
5,818
issues
43
releases

README

Born To Simplify Development




  
    
  

  
    
  

  
    
  

  
    
  



企业版 Mybatis-Mate 高级特性

添加 微信 wx153666 备注进 mp 群

 不允许非法项目使用,后果自负

 Special user


  
   
  
  
   
  


 What is MyBatis-Plus?

MyBatis-Plus is a powerful and enhanced toolkit of MyBatis for simplifying development.
It provides efficient, and out-of-the-box features (such as code generation, conditional query builders, pagination plugins...), effectively saving development time

 Links

- Documentation
- Code Generator
- Samples
- Showcase
- 企业版 Mybatis-Mate 高级特性

 Features

- Fully compatible with MyBatis
- Auto configuration on startup
- Out-of-the-box interfaces for operate database
- Powerful and flexible where condition wrapper
- Multiple strategy to generate primary key
- Lambda-style API
- Almighty and highly customizable code generator
- Automatic paging operation
- SQL Inject defense
- Support active record
- Support pluggable custom interface
- Build-in many useful extensions

 Getting started

 Add MyBatis-Plus dependency

Latest Version: 

Choose the starter for your Spring Boot version and replace Latest Version with the MyBatis-Plus version you want to use.

 Spring Boot 4

Requires MyBatis-Plus 3.5.13 or later.

Maven:

xml

    com.baomidou
    mybatis-plus-spring-boot4-starter
    Latest Version



Gradle:

groovy
implementation 'com.baomidou:mybatis-plus-spring-boot4-starter:Latest Version'


Test dependency (optional)

To write tests with @MybatisPlusTest, add the matching test starter using the same version as the starter above.

Maven:

xml

    com.baomidou
    mybatis-plus-spring-boot4-starter-test
    Latest Version
    test



Gradle:

groovy
testImplementation 'com.baomidou:mybatis-plus-spring-boot4-starter-test:Latest Version'


 Spring Boot 3

Maven:

xml

    com.baomidou
    mybatis-plus-spring-boot3-starter
    Latest Version



Gradle:

groovy
implementation 'com.baomidou:mybatis-plus-spring-boot3-starter:Latest Version'


Test dependency (optional)

To write tests with @MybatisPlusTest, add the matching test starter using the same version as the starter above.

Maven:

xml

    com.baomidou
    mybatis-plus-spring-boot3-starter-test
    Latest Version
    test



Gradle:

groovy
testImplementation 'com.baomidou:mybatis-plus-spring-boot3-starter-test:Latest Version'


 Spring Boot 2

Maven:

xml

    com.baomidou
    mybatis-plus-boot-starter
    Latest Version



Gradle:

groovy
implementation 'com.baomidou:mybatis-plus-boot-starter:Latest Version'


Test dependency (optional)

To write tests with @MybatisPlusTest, add the matching test starter using the same version as the starter above.

Maven:

xml

    com.baomidou
    mybatis-plus-boot-starter-test
    Latest Version
    test



Gradle:

groovy
testImplementation 'com.baomidou:mybatis-plus-boot-starter-test:Latest Version'


 SQL parser dependency (optional)

Since MyBatis-Plus 3.5.9, plugins that parse SQL, such as the pagination plugin, require one of the following parser modu

Top issues

Latest release

v3.5.18.1 v3.5.18.1 2026-10-27
- fix: isolate starter configurations and adapt Spring Boot 4
- fix: correct test convention source scanning
- fix: 修复全表操作拦截器 OR 条件空指针 (7195)
- opt: check formatting before build
- opt: 优化格式化多数据源相关代码

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON