# MyBatis-Plus

> Enhancement toolkit for MyBatis that cuts boilerplate in Java data access

Source: https://talira.ai/catalog/mybatis-plus-v9nj19jm
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / orm](https://talira.ai/categories/libraries/databases/orm), [languages / java](https://talira.ai/categories/languages/java)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1][^2]
- Pricing notes: Free and open source (Apache-2.0). Its makers also offer Mybatis-Mate, an enterprise edition with advanced features, linked from the README; its pricing wasn't on the pages read.
- Free tier: yes[^1][^2]
- Backed by: [baomidou](https://talira.ai/orgs/baomidou.md)

MyBatis-Plus is a toolkit on top of MyBatis for Java that stays fully compatible with it while adding ready-made CRUD interfaces, a flexible where-condition wrapper with a lambda-style API, primary key generation strategies, automatic pagination, active record support, SQL injection defence and a customisable code generator. Spring Boot starters configure it at startup (separate ones for Spring Boot 2, 3 and 4), and @MybatisPlusTest helps write tests. Install it from Maven Central under com.baomidou.

## Links

- Website: https://baomidou.com/
- GitHub: https://github.com/baomidou/mybatis-plus

## Problems it solves

- stop writing the same CRUD mapper XML for every table in a MyBatis project
- add pagination to MyBatis queries in Spring Boot without hand-written SQL
- build MyBatis queries in Java with type-safe conditions instead of strings

## Features

- fully compatible with MyBatis
- ready-made CRUD interfaces
- where-condition wrapper with a lambda-style API
- primary key generation strategies
- automatic pagination
- active record support
- SQL injection defence
- customisable code generator
- Spring Boot starters for Spring Boot 2, 3 and 4

## Trust

Overall: 0.73 out of 1.
Signals: maintenance 1.00, adoption 0.85, momentum 0.65, community 0.97, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 290 commits in the last 90 days
- latest release v3.5.18.1 33 days ago
- 17.5k GitHub stars
- 272 contributors
- backed by baomidou

## Related

- Based on [MyBatis](https://talira.ai/catalog/mybatis-ba3d1sm1.md)

## Alternatives

- [PageHelper](https://talira.ai/catalog/pagehelper-1r79gm8s.md): Pagination plugin for MyBatis that pages any single-table or multi-table query
- [MyBatis](https://talira.ai/catalog/mybatis-ba3d1sm1.md): SQL mapper persistence framework for Java
- [jOOQ](https://talira.ai/catalog/jooq-syq7be6j.md): Typesafe SQL query builder and code generator for Java

## Sources

[^1]: https://github.com/baomidou/mybatis-plus/blob/3.0/LICENSE (checked 29 Nov 2026)
[^2]: https://github.com/baomidou/mybatis-plus/blob/3.0/README.md (checked 29 Nov 2026)
