mybatis plus 集合分页插件

mybatis plus 集合分页插件
该插件专门针对集合数据进行分页,效果还不错!

springboot2.2.9
mybatis-3.2.0

如果你非常清楚需要哪些依赖
可以直接看

https://blog.csdn.net/qq_42682745/article/details/121574682


                <dependency>
                    <groupId>com.github.pagehelper</groupId>
                    <artifactId>pagehelper-spring-boot-starter</artifactId>
                    <version>1.2.5</version>
                    <exclusions>
                        <exclusion>
                            <groupId>org.mybatis</groupId>
                            <artifactId>mybatis</artifactId>
                        </exclusion>
                        <exclusion>
                            <groupId>org.mybatis</groupId>
                            <artifactId>mybatis-spring</artifactId>
                        </exclusion>
                    </exclusions>


                </dependency>

//必须先设置 分页参数
  PageHelper.startPage(1,2);

PageInfo<AgAdvertisingVo> pageInfo=new PageInfo(retLists);
posted @ 2022-03-07 11:53  方东信  阅读(91)  评论(0编辑  收藏  举报