1、官网https://pagehelper.github.io/
2、集成springboot文档 https://github.com/pagehelper/pagehelper-spring-boot
使用细则:https://github.com/pagehelper/Mybatis-PageHelper/blob/master/wikis/zh/HowToUse.md
example:https://github.com/abel533/MyBatis-Spring-Boot
3、分页插件参数介绍
分页插件提供了多个可选参数,在springboot application.properties 中以 pagehelper.<参数名> = <参数值> 的形式进行配置即可,分页插件可选参数如下
参数 |
说明 |
---|---|
dialect默认情况下会使用 PageHelper 方式进行分页,如果想要实现自己的分页逻辑,可以实现 Dialect(com.github.pagehelper.Dialect) 接口,然后配置该属性为实现类的全限定名称。 下面几个参数都是针对默认 dialect 情况下的参数。使用自定义 dialect 实现时,下面的参数没有任何作用。 |
|
helperDialect |
|