From 18841b199e715a114a576bee3dffa01129ac3a2b Mon Sep 17 00:00:00 2001 From: tanghc Date: Tue, 8 Oct 2019 16:24:09 +0800 Subject: [PATCH] 2.3.0 --- .../gateway/configuration/BaseGatewayConfiguration.java | 4 ++-- .../zuul/configuration/BaseZuulConfiguration.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/configuration/BaseGatewayConfiguration.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/configuration/BaseGatewayConfiguration.java index 7f2f79cd..7a315d02 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/configuration/BaseGatewayConfiguration.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/configuration/BaseGatewayConfiguration.java @@ -106,8 +106,8 @@ public class BaseGatewayConfiguration extends AbstractConfiguration { } @Bean - GatewayRouteCache gatewayRouteLoader(GatewayRouteRepository gatewayRouteManager) { - return new GatewayRouteCache(gatewayRouteManager); + GatewayRouteCache gatewayRouteCache(GatewayRouteRepository gatewayRouteRepository) { + return new GatewayRouteCache(gatewayRouteRepository); } @Bean diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/configuration/BaseZuulConfiguration.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/configuration/BaseZuulConfiguration.java index 8328813b..19aaef11 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/configuration/BaseZuulConfiguration.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/configuration/BaseZuulConfiguration.java @@ -90,7 +90,7 @@ public class BaseZuulConfiguration extends AbstractConfiguration { * @param zuulRouteRepository 路由仓库 */ @Bean - ZuulRouteCache zuulRouteLoader(ZuulRouteRepository zuulRouteRepository) { + ZuulRouteCache zuulRouteCache(ZuulRouteRepository zuulRouteRepository) { return new ZuulRouteCache(zuulRouteRepository); }