限流, Benchmark, 完整的权限
This commit is contained in:
parent
0c042beb3f
commit
9b21c77fe4
|
@ -248,6 +248,8 @@ public class ConfigGateway implements RouteDefinitionLocator {
|
|||
Object order = iter.get("order");
|
||||
if (order != null) {
|
||||
rd.setOrder((int) order);
|
||||
} else {
|
||||
rd.setOrder(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -272,7 +274,7 @@ public class ConfigGateway implements RouteDefinitionLocator {
|
|||
try {
|
||||
rd.setUri(URI.create((String) uri));
|
||||
} 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"));
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -15,7 +15,7 @@ restful: # filters 必须 有predicates uri只是预期到达的地址
|
|||
- RewritePath=/http/rewrite, /http/hello
|
||||
|
||||
- id: xixi
|
||||
uri: http://localhost:8888/http/xixi
|
||||
uri: http://localhost:8888
|
||||
order: 11
|
||||
predicates:
|
||||
- Path=/http/xixi
|
||||
|
|
Loading…
Reference in New Issue
Block a user