Springboot整合分頁插件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><!-- 分頁插件--><!-- <dependency>--><!-- <groupId>com.github.pagehelper</groupId>--><!-- <artifactId>pagehelper</artifactId>--><!-- <version>5.1.10</version>--><!-- </dependency>-->
使用注釋的會報版本錯
2. 配置文件
############# 分頁插件PageHelper配置 #############pagehelper.helper-dialect=sqlserverpagehelper.reasonable=truepagehelper.support-methods-arguments=truepagehelper.params=count=countSql#pagehelper.pageSizeZero=true
3.使用
以上就是本文的全部內(nèi)容,希望對大家的學習有所幫助,也希望大家多多支持好吧啦網(wǎng)。
相關文章:
1. 在Android中使用WebSocket實現(xiàn)消息通信的方法詳解2. python matplotlib:plt.scatter() 大小和顏色參數(shù)詳解3. Yii2.0引入CSS,JS文件方法4. JSP數(shù)據(jù)交互實現(xiàn)過程解析5. Python importlib動態(tài)導入模塊實現(xiàn)代碼6. vue使用webSocket更新實時天氣的方法7. 淺談python出錯時traceback的解讀8. android studio 打包自動生成版本號與日期,apk輸入路徑詳解9. Nginx+php配置文件及原理解析10. JavaMail 1.4 發(fā)布
