首先springboot版本一定要是2.0
看pom
原来我引入的pagehelper是
dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>4.1.6</version>
</dependency>
后来
我把pom里面的pagehelper依赖换成了
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.10</version>
</dependency>
然后 重新启动