mybatis的startPage使用
SpringBoot的配置
引入依赖
<!-- 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.2.12</version>
</dependency>
配置mybatis
mybatis:
#... 其他配置信息
configuration-properties:
offsetAsPageNum: true
rowBoundsWithCount: true
reasonable: true
mapper-locations: mybatis/mapper/*.xml
SpringMVC的配置
引入依赖
<!-- pageHelper -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId></