springboot 集成项目,使用pagehelper插件
首先在pom.xml中引入pagehelper-spring-boot-starter包
<!-- springboot分页插件 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.4</version>
</dependency>
如果你使用的是下面这个配置是会报这个错误的
<!-- mybatis的分页插件 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
</dependency>