pull/1/head
tanghc 5 years ago
parent 3871132b55
commit 18841b199e
  1. 4
      sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/configuration/BaseGatewayConfiguration.java
  2. 2
      sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/configuration/BaseZuulConfiguration.java

@ -106,8 +106,8 @@ public class BaseGatewayConfiguration extends AbstractConfiguration {
} }
@Bean @Bean
GatewayRouteCache gatewayRouteLoader(GatewayRouteRepository gatewayRouteManager) { GatewayRouteCache gatewayRouteCache(GatewayRouteRepository gatewayRouteRepository) {
return new GatewayRouteCache(gatewayRouteManager); return new GatewayRouteCache(gatewayRouteRepository);
} }
@Bean @Bean

@ -90,7 +90,7 @@ public class BaseZuulConfiguration extends AbstractConfiguration {
* @param zuulRouteRepository 路由仓库 * @param zuulRouteRepository 路由仓库
*/ */
@Bean @Bean
ZuulRouteCache zuulRouteLoader(ZuulRouteRepository zuulRouteRepository) { ZuulRouteCache zuulRouteCache(ZuulRouteRepository zuulRouteRepository) {
return new ZuulRouteCache(zuulRouteRepository); return new ZuulRouteCache(zuulRouteRepository);
} }

Loading…
Cancel
Save