Springboot整合分頁(yè)插件PageHelper步驟解析
1.pom引入
<!-- mybatis-plus --><dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.1.0</version></dependency><dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.2.12</version></dependency><!-- 分頁(yè)插件--><!-- <dependency>--><!-- <groupId>com.github.pagehelper</groupId>--><!-- <artifactId>pagehelper</artifactId>--><!-- <version>5.1.10</version>--><!-- </dependency>-->
使用注釋的會(huì)報(bào)版本錯(cuò)
2. 配置文件
############# 分頁(yè)插件PageHelper配置 #############pagehelper.helper-dialect=sqlserverpagehelper.reasonable=truepagehelper.support-methods-arguments=truepagehelper.params=count=countSql#pagehelper.pageSizeZero=true
3.使用
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持好吧啦網(wǎng)。
相關(guān)文章:
1. Python如何批量生成和調(diào)用變量2. windows服務(wù)器使用IIS時(shí)thinkphp搜索中文無(wú)效問(wèn)題3. Python基于requests實(shí)現(xiàn)模擬上傳文件4. ASP.NET MVC實(shí)現(xiàn)橫向展示購(gòu)物車(chē)5. 通過(guò)CSS數(shù)學(xué)函數(shù)實(shí)現(xiàn)動(dòng)畫(huà)特效6. python利用opencv實(shí)現(xiàn)顏色檢測(cè)7. Python 中如何使用 virtualenv 管理虛擬環(huán)境8. ASP.Net Core(C#)創(chuàng)建Web站點(diǎn)的實(shí)現(xiàn)9. Python sorted排序方法如何實(shí)現(xiàn)10. Python獲取B站粉絲數(shù)的示例代碼
