这篇文章主要介绍了Spri来源[email protected]搞@^&代*@码网ngboot整合分页插件PageHelper步骤解析,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
1.pom引入
<!-- mybatis-plus --> com.baomidoumybatis-plus-boot-starter3.1.0 com.github.pagehelperpagehelper-spring-boot-starter1.2.12<!-- 分页插件--><!-- --><!-- com.github.pagehelper--><!-- pagehelper--><!-- 5.1.10--><!-- -->
使用注释的会报版本错
2. 配置文件
############# 分页插件PageHelper配置 #############
pagehelper.helper-dialect=sqlserver
pagehelper.reasonable=true
pagehelper.support-methods-arguments=true
pagehelper.params=count=countSql
#pagehelper.pageSizeZero=true
3.使用
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持gaodaima搞代码网。
以上就是Springboot整合分页插件PageHelper步骤解析的详细内容,更多请关注gaodaima搞代码网其它相关文章!