在springboot项目中使用pagehelper不起作用,返回的都是全部的数据。找了一下别人的博客发现是依赖导入问题。我原来的pom依赖如下:
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId></artifactId>
<version>5.1.11</version>
</dependency>
改成如下这样就可以了
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.3.1</version>
</dependency>
https://blog.csdn.net/qq_38217237/article/details/89061751