maven
<!-- https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper-spring-boot-starter --> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.4.6</version> </dependency> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.2.0</version> </dependency>
yml配置
#pagehelper分页插件配置 pagehelper.helperDialect=mysql pagehelper.reasonable=true pagehelper.supportMethodsArguments=true pagehelper.params=count=countSql #mybatis 分页插件 pagehelper: helperDialect: oracle reasonable: true supportMethodsArguments: true params: count=countSql
代码
PageHelper.startPage(pageNumber, pageSize); PageInfo pageInfo = new PageInfo<>(maps);
标签:插件,springboot,helperDialect,pagehelper,true,分页 From: https://www.cnblogs.com/qukaige/p/17443885.html