springboot pagehelper分页插件

1.导包

<dependency>
    <groupId>com.github.pagehelper</groupId>
    <artifactId>pagehelper-spring-boot-starter</artifactId>
    <version>1.2.3</version>
</dependency>

2.yml配置

# 分页配置
pagehelper:
  helper-dialect: mysql
  reasonable: false
  support-methods-arguments: true
  params: count=countSql

reasonable一定要false不然页码会有问题!!!

猜你喜欢

转载自blog.csdn.net/qq_37759106/article/details/81387664