mybatis-flex/mybatis-flex
mybatis-flex is an elegant Mybatis Enhancement Framework observed · 2026-08-28
Health v2 · maintenance only
92/100
- Activity 94
- Release rhythm 91
- Longevity 91
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 22
- age_days: 1283
- days_rel: 63
- days_push: 38
- n_releases_24m: 20
Adoption not part of the score
2661 stars · 257 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
MyBatis-Flex is a lightweight enhancement framework for MyBatis that adds fluent QueryWrapper-based CRUD, pagination, multi-table queries, and entity-free row mapping without any third-party dependencies beyond MyBatis itself. It integrates with Spring Boot 2/3/4 and Solon, and uses APT code generation for type-safe, IDE-friendly SQL building.
Use cases
- build type-safe SQL queries in Java without writing XML mappers
- add CRUD and pagination to a Spring Boot app with MyBatis
- query databases without entity classes using row mapping
- support multiple database dialects in one codebase
- implement logical delete and optimistic locking in MyBatis
- replace MyBatis-Plus with a lighter, faster alternative
- mask sensitive data fields automatically on query results
When to choose
- you use MyBatis with Spring Boot or Solon and want fluent, type-safe queries
- you need a MyBatis enhancement with minimal dependencies and no SQL parsing overhead
- you want multi-table joins, composite primary keys, and pagination out of the box
- you need entity-free row-level database access
When to avoid
- you use JPA/Hibernate or a non-Java stack
- you already depend on MyBatis-Plus and cannot remove it (they conflict at startup)
- you rely heavily on MyBatis interceptor plugins like PageHelper
- you need a full ORM with schema migration and entity relationship management
Facets
library · maturity active
orm database database-driver databases backend web-development developer-tools jvm windows mybatis spring-boot query-wrapper sql-builder multi-database pagination data-masking logical-delete optimistic-locking linux macos
4 sources
- readme: https://github.com/mybatis-flex/mybatis-flex · fetched 2026-08-28 · bd46e20d9da4
- homepage: https://mybatis-flex.com · fetched 2026-08-29 · 40eaa58923a6
- site_page: https://mybatis-flex.com/zh/intro/getting-started.html · fetched 2026-08-29 · 299c611aeb03
- site_page: https://mybatis-flex.com/zh/faq.html · fetched 2026-08-29 · 6a253be4dfb9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mybatis-flex/mybatis-flex | main | 92 |
For agents
markdown · JSON · MCP: product_card(name="mybatis-flex/mybatis-flex")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem