mybatis-page-spring-boot-starter 是基于mybais-page springboot项目自动化分页starter
<dependency>
<groupId>com.github.monee1988</groupId>
<artifactId>mybatis-page-spring-boot-starter</artifactId>
<version>1.0.1-RELEASE</version>
</dependency>
implementation 'com.github.monee1988:mybatis-page-spring-boot-starter:1.0.1-RELEASE'
应用此插件默认开发者是基于springboot的项目开发
mybatis:
type-aliases-package: com.xxx.xxx.entity
mapper-locations: classpath:/mappers/*Mapper.xml
page-interceptor:
interceptorEnabled: true #开启分页
dialectClassName: com.github.monee1988.mybatis.dialect.support.MySqlDialect #MySqlDialect分页方言
# dialectClassName: com.github.monee1988.mybatis.dialect.support.SqlServerDialect #SqlServerDialect分页方言
# dialectClassName: com.github.monee1988.mybatis.dialect.support.OracleDialect #OracleDialect分页方言
mybatis.type-aliases-package=com.xxx.xxx.entity
mybatis.mapper-locations=classpath:/mappers/*Mapper.xml
#开启分页
mybatis.page-interceptor.interceptorEnabled=true
#MySqlDialect分页方言
mybatis.page-interceptor.dialectClassName=com.github.monee1988.mybatis.dialect.support.MySqlDialect
#SqlServerDialect分页方言
#mybatis.page-interceptor.dialectClassName=com.github.monee1988.mybatis.dialect.support.SqlServerDialect
#OracleDialect分页方言
#mybatis.page-interceptor.dialectClassName=com.github.monee1988.mybatis.dialect.support.OracleDialect