# MyBatis-Plus

An powerful enhanced toolkit of MyBatis for simplify development

Repository: https://github.com/baomidou/mybatis-plus
Canonical: https://ross.abutalabs.com/products/mybatis-plus
Homepage: https://baomidou.com
Language: Java
License: Apache-2.0
License Family: permissive
Topics: mybatis, mybatis-plus, orm, orm-framework, toolkit, mysql, postgresql, mybatis-spring
Last push: 2026-08-03T06:30:48+00:00
Link (homepage): https://baomidou.com

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 80, longevity 100
- inputs: {"age_days": 3667, "days_push": 30, "days_rel": 56, "gap_med": 55.0, "n_releases_24m": 11}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 17462, forks 4447 (observed 2026-08-28T04:11:19.882727+00:00)

## What it is
MyBatis-Plus is an enhancement toolkit for the MyBatis ORM framework on the JVM, providing out-of-the-box CRUD interfaces, conditional query wrappers, pagination plugins, and a customizable code generator. It is fully compatible with existing MyBatis projects and integrates via Spring Boot starters.

## Use cases
- simplify single-table CRUD operations in a Java Spring Boot app
- generate entity, mapper, and service code from database tables
- build dynamic WHERE conditions with a lambda-style query wrapper
- add automatic pagination to MyBatis queries
- implement logical delete and auto-fill fields without boilerplate
- reduce boilerplate SQL in an existing MyBatis project

## When to choose
- you use MyBatis in a Spring or Spring Boot project and want less boilerplate
- you need rapid single-table CRUD with flexible condition building
- you want code generation, pagination, and logical delete out of the box

## When to avoid
- you prefer full control over SQL without an enhancement layer
- your project uses JPA/Hibernate or a non-JVM stack
- you need a fully non-Spring plain MyBatis setup with minimal dependencies

## Facets
- artifact type: library
- maturity: stable
- function: orm, database, middleware
- domain: databases, backend, developer-tools, web-development
- platform: jvm, cross-platform
- tags: mybatis, mybatis-plus, crud, pagination, code-generator, active-record, sql-injection-defense, spring-boot-starter, code-generation, spring-boot

## Member repositories
- baomidou/mybatis-plus (main) score 91
- baomidou/mybatis-plus-samples (examples) score 50

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:19.882727+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:02:56.026775+00:00, confidence not recorded.
  - readme: https://github.com/baomidou/mybatis-plus (fetched 2026-08-28T04:11:19.882727+00:00, sha 053860857bf2)
  - homepage: https://baomidou.com (fetched 2026-08-29T08:01:04.362568+00:00, sha 81cb356cc01f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
