pagehelper1.4.5配置
时间: 2023-08-26 22:07:00 浏览: 133
PageHelper 1.4.5的配置如下所示:
在pom.xml文件中添加以下依赖:
```xml
<!-- Pagehelper分页插件 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.4.5</version>
</dependency>
```
在application.yml文件中添加以下配置:
```yaml
# Pagehelper分页插件配置
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
```
这样配置后,你就可以使用PageHelper进行分页操作了。
#### 引用[.reference_title]
- *1* [【mybatis】第一篇,Springboot中使用插件PageHelper不生效解决方案](https://blog.csdn.net/qq_23126581/article/details/127648372)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [springboot使用pagehelper分页失效原因](https://blog.csdn.net/qq_41946557/article/details/124622049)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文