ServiceFramwork.injector.getInstance(API.class).qpsIncrement(processInfo.method);
boolean qpsLimitEnable = settings.getAsBoolean("qpslimit.enable", false);
if (qpsLimitEnable) {
QpsManager qpsManager = ServiceFramwork.injector.getInstance(QpsManager.class);
if (qpsManager.check(request.getRequestURI())) {
logger.error("qps 限流");
throw new RuntimeException("qps-overflow");
}
}
}