BatchSize支持可配置
This commit is contained in:
parent
3f5a0cc9ac
commit
8dc5ad5bc8
|
@ -93,7 +93,7 @@ public class BaseConfig {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static int getPageSize() {
|
public static int getPageSize() {
|
||||||
Integer length = PropertiesUtils.getInteger("pagination.default.pageSize");
|
Integer length = PropertiesUtils.getInteger("system.pagination.pageSize");
|
||||||
if(length != null){
|
if(length != null){
|
||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
@ -105,6 +105,10 @@ public class BaseConfig {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static int getBatchSize() {
|
public static int getBatchSize() {
|
||||||
|
Integer length = PropertiesUtils.getInteger("system.batch.size");
|
||||||
|
if(length != null){
|
||||||
|
return length;
|
||||||
|
}
|
||||||
return 1000;
|
return 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue