Skip to content

lmm1990/pagination-spring-boot-starter

Repository files navigation

pagination-spring-boot-starter

基于spring boot+mybatis的分页插件 maven License java version

💿 快速开始

Maven 资源

<dependency>
    <groupId>show.lmm</groupId>
    <artifactId>pagination-spring-boot-starter</artifactId>
    <version>1.0</version>
</dependency>

Gradle 依赖

implementation 'show.lmm:pagination-spring-boot-starter:1.0'

在代码中使用

//初始化分页参数
PaginationHelper.init(1,5);
//多表联查时,建议手写查询总数量sql性能更佳
PaginationHelper.init(2,10,"select 999;");
//分页结果
Page<TestInfo> result = testMapper.listByStatus(1);

About

基于spring boot+mybatis的分页插件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages