限流, Benchmark, 完整的权限

This commit is contained in:
eson 2019-07-18 00:49:18 +08:00
parent 0c042beb3f
commit 9b21c77fe4
2 changed files with 4 additions and 2 deletions

View File

@ -248,6 +248,8 @@ public class ConfigGateway implements RouteDefinitionLocator {
Object order = iter.get("order"); Object order = iter.get("order");
if (order != null) { if (order != null) {
rd.setOrder((int) order); rd.setOrder((int) order);
} else {
rd.setOrder(0);
} }
} }
@ -272,7 +274,7 @@ public class ConfigGateway implements RouteDefinitionLocator {
try { try {
rd.setUri(URI.create((String) uri)); rd.setUri(URI.create((String) uri));
} catch (Exception e) { } catch (Exception e) {
log.warn("dubbo Uri error"); log.warn("dubbo Uri = {} error, so set uri to default value dubbo://yame", uri);
rd.setUri(URI.create("dubbo://yame")); rd.setUri(URI.create("dubbo://yame"));
} }
} else { } else {

View File

@ -15,7 +15,7 @@ restful: # filters 必须 有predicates uri只是预期到达的地址
- RewritePath=/http/rewrite, /http/hello - RewritePath=/http/rewrite, /http/hello
- id: xixi - id: xixi
uri: http://localhost:8888/http/xixi uri: http://localhost:8888
order: 11 order: 11
predicates: predicates:
- Path=/http/xixi - Path=/http/xixi