1. 程式人生 > >小書MybatisPlus第4篇-表格分頁與下拉分頁查詢

小書MybatisPlus第4篇-表格分頁與下拉分頁查詢

本文為mybatis系列文件的第4篇,前三篇請訪問下面的網址。 * [小書MybatisPlus第1篇-整合SpringBoot快速開始增刪改查](http://www.zimug.com/other/springboot/%e5%b0%8f%e4%b9%a6mybatisplus%e7%ac%ac1%e7%af%87-%e6%95%b4%e5%90%88springboot%e5%bf%ab%e9%80%9f%e5%bc%80%e5%a7%8b%e5%a2%9e%e5%88%a0%e6%94%b9%e6%9f%a5/.html) * [小書MybatisPlus第2篇-條件構造器的應用及總結](http://www.zimug.com/other/springboot/%e5%b0%8f%e4%b9%a6mybatisplus%e7%ac%ac2%e7%af%87-%e6%9d%a1%e4%bb%b6%e6%9e%84%e9%80%a0%e5%99%a8%e7%9a%84%e5%ba%94%e7%94%a8%e5%8f%8a%e6%80%bb%e7%bb%93/.html) * [小書MybatisPlus第3篇-自定義SQL](http://www.zimug.com/other/java/%e5%b0%8f%e4%b9%a6mybatisplus%e7%ac%ac3%e7%af%87-%e8%87%aa%e5%ae%9a%e4%b9%89sql/.html) ## 一、讓Spring Boot-MybatisPlus支援分頁 在已經集成了Mybatis Plus的Spring專案中加入如下分頁攔截器的配置,讓MybatisPlus支援分頁 ~~~ @Configuration public class MybatisPlusConfiguration { //配置分頁攔截器 @Bean public PaginationInterceptor paginationInterceptor() { return new PaginationInterceptor(); } } ~~~ ## 二、單表查詢分頁-表格分頁 ~~~ @Test public void testSelect() { LambdaQuer