# mybatis-page-spring-boot-starter **Repository Path**: parabola1988/mybatis-page-spring-boot-starter ## Basic Information - **Project Name**: mybatis-page-spring-boot-starter - **Description**: mybatis-page-spring-boot-starter - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-14 - **Last Updated**: 2022-05-17 ## Categories & Tags **Categories**: spring-boot-ext **Tags**: MyBatis, SpringBoot ## README ## [mybatis-page-spring-boot-starter](https://github.com/monee1988/mybatis-page-spring-boot-starter) mybatis-page-spring-boot-starter 是基于[mybais-page](https://github.com/monee1988/mybatis-page) springboot项目自动化分页starter ### maven 坐标 : ``` com.github.monee1988 mybatis-page-spring-boot-starter 1.0.1-RELEASE ``` ### gradle 坐标 : ``` implementation 'com.github.monee1988:mybatis-page-spring-boot-starter:1.0.1-RELEASE' ``` ### 说明 应用此插件默认开发者是基于springboot的项目开发 ### 配置指南 #### 1. yml配置方式 ``` 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分页方言 ``` #### 2. properties配置方式 ``` 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 ``` #### 3. 传统项目配置方式 [请参考mybatis-page项目的分页拦截器配置说明](https://github.com/monee1988/mybatis-page#1-%E5%88%86%E9%A1%B5%E6%8B%A6%E6%88%AA%E5%99%A8%E9%85%8D%E7%BD%AE)