# mybatis-plugin-pager **Repository Path**: zhiguofa/mybatis-plugin-pager ## Basic Information - **Project Name**: mybatis-plugin-pager - **Description**: 最好用的mybatis分页插件,扩展简单强大,暂时只支持mysql - **Primary Language**: Java - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 9 - **Forks**: 1 - **Created**: 2019-05-25 - **Last Updated**: 2025-08-04 ## Categories & Tags **Categories**: database-dev **Tags**: None ## README #maven依赖 - mysql #dao接口增加page参数即可 public interface PscanDao { List getUserList(Page page); } #mapper文件,不需要指定limit关键字,插件根据dao接口中的page参数自动添加分页查询参数 select u.username, u.email from user u where u.age > #{age} - oracle 需要补充 _db_row_no列, 插件添加 _db_row_no > start and _db_row_no <= start + page_size select row_number() as _db_row_no, u.username, u.email from user u where u.age > #{age} #mybatis 配置文件