pagehelper 在yml的配置
时间: 2023-10-17 10:26:58 浏览: 87
PageHelper在yml配置文件中的配置可以有多种方式,根据不同的版本可能会有细微的差异。下面是三个不同版本的配置方式:
引用中的配置方式:
```
pagehelper:
helper-dialect: mysql
reasonable: false
support-methods-arguments: true
params: count=countSql
```
引用中的配置方式:
```
pagehelper:
helper-dialect: mysql
reasonable: true
support-methods-arguments: true
```
引用中的配置方式:
```
pagehelper:
helper-dialect: mysql
reasonable: true
support-methods-arguments: true
```
在yml配置中,`helper-dialect`用于设置数据库方言,`reasonable`用于设置分页参数的合理化,`support-methods-arguments`用于支持通过Mapper接口参数传递分页参数。可以根据具体需求选择相应的配置方式。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [springboot pagehelper分页插件](https://blog.csdn.net/qq_37759106/article/details/81387664)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [springboot配置分页插件pageHelper(yml)](https://blog.csdn.net/Nimotip/article/details/126680492)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文