REQ-2010: 调整最大分页数量
This commit is contained in:
parent
65130a0336
commit
40f8ac6384
@ -31,7 +31,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
args = {Connection.class, Integer.class})})
|
||||
public class BeautifulPaginationInterceptor implements Interceptor, Ordered {
|
||||
|
||||
private final PaginationInterceptor delegate = new PaginationInterceptor();
|
||||
private final PaginationInterceptor delegate = new CustomPaginationInterceptor();
|
||||
|
||||
@Override
|
||||
public Object intercept(Invocation invocation) throws Throwable {
|
||||
@ -58,6 +58,14 @@ public class BeautifulPaginationInterceptor implements Interceptor, Ordered {
|
||||
return delegate.intercept(invocation);
|
||||
}
|
||||
|
||||
private static class CustomPaginationInterceptor extends PaginationInterceptor {
|
||||
|
||||
public CustomPaginationInterceptor() {
|
||||
limit = 5000;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getOrder() {
|
||||
return Integer.MIN_VALUE;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user