Ver código fonte

不限制分页大小

lixingyhj@gmail.com 2 anos atrás
pai
commit
fc29415215

+ 3 - 1
apm-mybatis/src/main/java/com/persagy/apm/mybatis/config/MybatisPlusConfig.java

@@ -31,6 +31,8 @@ public class MybatisPlusConfig {
      */
     @Bean
     public PaginationInterceptor paginationInterceptor() {
-        return new PaginationInterceptor();
+        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
+        paginationInterceptor.setLimit(Integer.MAX_VALUE);
+        return paginationInterceptor;
     }
 }