Adjust position of AfterRoutePredicateFactory

fixes gh-1557
This commit is contained in:
Ingyu Hwang
2020-02-05 16:56:15 +09:00
committed by Spencer Gibb
parent 799577edb7
commit b017891fe7

View File

@@ -330,11 +330,6 @@ public class GatewayAutoConfiguration {
return new WeightCalculatorWebFilter(routeLocator, configurationService);
}
@Bean
public AfterRoutePredicateFactory afterRoutePredicateFactory() {
return new AfterRoutePredicateFactory();
}
/*
* @Bean //TODO: default over netty? configurable public WebClientHttpRoutingFilter
* webClientHttpRoutingFilter() { //TODO: WebClient bean return new
@@ -346,6 +341,11 @@ public class GatewayAutoConfiguration {
// Predicate Factory beans
@Bean
public AfterRoutePredicateFactory afterRoutePredicateFactory() {
return new AfterRoutePredicateFactory();
}
@Bean
public BeforeRoutePredicateFactory beforeRoutePredicateFactory() {
return new BeforeRoutePredicateFactory();