From 8dc5ad5bc8904f059aff2dbe9513fb772b3202ed Mon Sep 17 00:00:00 2001 From: mazhicheng Date: Sat, 30 May 2020 14:37:19 +0800 Subject: [PATCH] =?UTF-8?q?BatchSize=E6=94=AF=E6=8C=81=E5=8F=AF=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/diboot/core/config/BaseConfig.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/diboot-core/src/main/java/com/diboot/core/config/BaseConfig.java b/diboot-core/src/main/java/com/diboot/core/config/BaseConfig.java index a642b32..4b481e4 100644 --- a/diboot-core/src/main/java/com/diboot/core/config/BaseConfig.java +++ b/diboot-core/src/main/java/com/diboot/core/config/BaseConfig.java @@ -93,7 +93,7 @@ public class BaseConfig { * @return */ public static int getPageSize() { - Integer length = PropertiesUtils.getInteger("pagination.default.pageSize"); + Integer length = PropertiesUtils.getInteger("system.pagination.pageSize"); if(length != null){ return length; } @@ -105,6 +105,10 @@ public class BaseConfig { * @return */ public static int getBatchSize() { + Integer length = PropertiesUtils.getInteger("system.batch.size"); + if(length != null){ + return length; + } return 1000; }