baomidou /mybatis-plus
An powerful enhanced toolkit of MyBatis for simplify development
★ 17,484⑂ 4,433👁 79⑃ 1,213● 5,818▤ 43
-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 moduTop issues
#6374[功能改进]: 4.0 希望支持功能建议收集81 comments · 2024-08-06#61864.x版本改造11 comments · 2024-05-21#7148[错误报告]: Error setting non null for parameter #1 with JdbcType null .7 comments · 2026-07-13#6430DataChangeRecorderInnerInterceptor插件Bug归档处理6 comments · 2024-08-23#6246kotlin下使用对象当做别名去引用属性传入Compare的方法无法编译通过了5 comments · 2024-06-08#7162[错误报告]: Gbase数据库驱动不支持方法 : IfxStatement.closeOnCompletion()错误4 comments · 2026-07-29#6188解决BaseMapper批量操作二级缓存清理问题3 comments · 2024-05-21#7183[功能改进]: 支持 PolarDB-Oracle 数据库2 comments · 2026-10-12
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: 优化格式化多数据源相关代码