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.使用
以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持好吧啦網。
相關文章:
1. IntelliJ IDEA創建web項目的方法2. CentOS郵件服務器搭建系列—— POP / IMAP 服務器的構建( Dovecot )3. ASP中實現字符部位類似.NET里String對象的PadLeft和PadRight函數4. django創建css文件夾的具體方法5. 存儲于xml中需要的HTML轉義代碼6. Android打包上傳AAR文件到Maven倉庫的示例7. .NET SkiaSharp 生成二維碼驗證碼及指定區域截取方法實現8. MyBatis JdbcType 與Oracle、MySql數據類型對應關系說明9. phpstudy apache開啟ssi使用詳解10. jsp網頁實現貪吃蛇小游戲
