BatchSize支持可配置

This commit is contained in:
mazhicheng 2020-05-30 14:37:19 +08:00
parent 3f5a0cc9ac
commit 8dc5ad5bc8
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}