在Springboot项目中使用分页插件的时候 发现PageHelper插件失效了
我导入的是再ssm中用的依赖:
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>4.1.6</version>
</dependency>
这个以来在SSM项目中是生效的,但是在Springboot项目中却不生效,
后来发现在Springboot项目中需要导入的是Springboot PageHelper启动器的依赖,如下:
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.5</version>
</dependency>
换了依赖后更新maven,问题解决!