# pagehelper-org/Mybatis-PageHelper

Mybatis通用分页插件

Repository: https://github.com/pagehelper-org/Mybatis-PageHelper
Canonical: https://ross.abutalabs.com/products/mybatis-pagehelper
Homepage: https://mybatis.io
Language: Java
License: MIT
License Family: permissive
Topics: mybatis-plugin, mybatis
Last push: 2026-08-07T01:39:20+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 8, longevity 100
- inputs: {"age_days": 4468, "days_push": 27, "days_rel": 440, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 12355, forks 3080 (observed 2026-08-28T04:10:52.457740+00:00)

## What it is
PageHelper is a widely used pagination plugin for MyBatis that intercepts queries to perform physical (database-level) pagination. It supports many databases via auto-dialect detection and integrates with plain MyBatis, Spring, and Spring Boot.

## Use cases
- paginate MyBatis query results
- physical pagination for MySQL, PostgreSQL, Oracle, SQL Server queries
- add pagination to a Spring Boot MyBatis application
- page through single-table and multi-table join queries
- auto-detect database dialect for LIMIT/OFFSET paging

## When to choose
- you use MyBatis and need convenient, transparent pagination
- you want physical paging across many database dialects with one plugin
- you want a Spring Boot starter for MyBatis pagination

## When to avoid
- you use JPA/Hibernate rather than MyBatis
- you need pagination outside the JVM/MyBatis ecosystem
- you need fully in-memory pagination of already-loaded results

## Facets
- artifact type: library
- maturity: stable
- function: orm, database, middleware
- domain: databases, backend, developer-tools
- platform: jvm, cross-platform
- tags: mybatis, pagination, physical-paging, spring-boot-starter, interceptor-plugin

## Member repositories
- pagehelper-org/Mybatis-PageHelper (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:52.457740+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:14:08.108384+00:00, confidence not recorded.
  - readme: https://github.com/pagehelper-org/Mybatis-PageHelper (fetched 2026-08-28T04:10:52.457740+00:00, sha 6849a809babf)
  - homepage: https://mybatis.io (fetched 2026-08-29T08:11:10.813898+00:00, sha b6d36138a2ee)
- Data as of 2026-08-30T08:39:29.467469+00:00.
