PageHelper Springboot

<dependency>
            <groupId>com.github.pagehelper</groupId>
            <artifactId>pagehelper-spring-boot-starter</artifactId>
        </dependency>
PageHelper.startPage(page,size);
orders = orderMapper.selectByExample(example);
PageInfo<Order> orderPageInfo = new PageInfo<>(orders);
long total = orderPageInfo.getTotal();
上一篇:首页模块设计(个人博客)


下一篇:springboot笔记(7) 使用pageInfo插件