添加分页插件依赖文件
注意:以下三个缺一不可,原来只是添加了pagehelper-spring-boot-starter。
结果无法下载,刚开始我以为是远程仓库的问题,从阿里的换了好多,又自己从中央仓库下载jar包添加到maven都没用。。。
<!-- 分页插件pagehelper -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-autoconfigure</artifactId>
<version>1.2.3</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.3</version>
</dependency>
<!-- 分页插件pagehelper -->
找了一下午的解决方案原来出错在这。。