mybatis分页,PageHelper分页、分页查询

依赖以及使用

        <dependency>
            <groupId>com.github.pagehelper</groupId>
            <artifactId>pagehelper</artifactId>
            <version>5.1.8</version>
        </dependency>
        PageHelper.startPage(Integer.parseInt(vo.getPageNum()),Integer.parseInt(vo.getPageSize()));

        new PageInfo<>(contractMapper.findAll(map))
原文地址:https://www.cnblogs.com/qq376324789/p/13497009.html