在使用pageHelper分页插件的时候,有时候会出现没有起到分页的效果,在与springboot结合使用的时候和平常使用有些不同
1.平常我们只需要导入maven的依赖就行
<!-- https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper -->
<!--<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>5.0.2</version>
</dependency>-->
2.而与springboot集成后需要导入与springboot集成的依赖:
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.1.2</version>
</dependency>