springboot 整合 pagehelper
pom.xml
<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.2.13</version> </dependency>
使用
int start=1; int end=10; PageHelper.startPage(start,end); List<ChannelSalerDTO> channelSalerDTOS = channelSalerMapper.selectAllSalerByPage(new ChannelSalerDTO());