1. 背景:
PageHelper-Spring-Boot-StarterV1.4.5 是集成到 Spring Boot的分页插件。最新版本是1.4.5。
2. 排查思路:
通过“https://github.com/pagehelper/pagehelper-spring-boot” 对应的GitHub,可以初步判断,PageHelper-Spring-Boot-Starte只是一个外壳,最后使用的分页还是PageHelper,所以我们只需要PageHelper即可。修改见下图:

3. 添加支持
1)添加SundbDialect.java(因为SUNDB分页同时支持MySQL和Oracle,所以只需要复制其中之一的Dialect复制改名即可)
src/main/java/com/github/pagehelper/dialect/helper/SundbDialect.java
2)添加SundbRowBoundsDialect.java(因为SUNDB和Oracle一样,支持rownumber进行分页,所以只需要复制Oracle对应的文件,然后改名即可)
src/main/java/com/github/pagehelper/dialect/rowbounds/SundbRowBoundsDialect.java
3)自动注册添加SUNDB数据库支持(见下图) src/main/java/com/github/pagehelper/page/PageAutoDialect.java

4. 使用方式
SpringBoot方式 pom.xml文件引入本地支持SUNDB的jar包, ,如下图:
需要删除“PageHelper-Spring-Boot-Starter”自动下载jar包。

springboot的配置文件添加相关说明:

Mybatis直接使用PageHelper
mybatis-config.xml配置添加内容:
image




