Explorar o código

不限制分页大小

lixingyhj@gmail.com %!s(int64=2) %!d(string=hai) anos
pai
achega
fc29415215

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

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