Browse Source

Merge branch '2.2.x'

pull/1664/head
Spencer Gibb 5 years ago
parent
commit
991677b733
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 5
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/route/RouteDefinitionRouteLocator.java

5
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/route/RouteDefinitionRouteLocator.java

@ -179,14 +179,15 @@ public class RouteDefinitionRouteLocator implements RouteLocator { @@ -179,14 +179,15 @@ public class RouteDefinitionRouteLocator implements RouteLocator {
// TODO: support option to apply defaults after route specific filters?
if (!this.gatewayProperties.getDefaultFilters().isEmpty()) {
filters.addAll(loadGatewayFilters(DEFAULT_FILTERS,
this.gatewayProperties.getDefaultFilters()));
new ArrayList<>(this.gatewayProperties.getDefaultFilters())));
}
if (!routeDefinition.getFilters().isEmpty()) {
filters.addAll(loadGatewayFilters(routeDefinition.getId(),
routeDefinition.getFilters()));
new ArrayList<>(routeDefinition.getFilters())));
}
Flux.just().onErrorContinue()
AnnotationAwareOrderComparator.sort(filters);
return filters;
}

Loading…
Cancel
Save