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); }