可自定义路由拉取url

pull/1/head
tanghc 5 years ago
parent fcf4b6362d
commit 3522269626
  1. 1
      sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/route/GatewayRouteCache.java

@ -69,6 +69,7 @@ public class GatewayRouteCache extends BaseRouteCache<GatewayTargetRoute> {
routeDefinition.setId(name + version);
routeDefinition.setName(name);
routeDefinition.setVersion(version);
routeDefinition.setUri("lb://" + serviceRouteInfo.getServiceId());
routeDefinition.setOrder(Integer.MIN_VALUE);
return Collections.singletonList(routeDefinition);

Loading…
Cancel
Save