diff --git a/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/FlowRuleNacosProvider.java b/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/FlowRuleNacosProvider.java index 1ed9c071..54405af3 100644 --- a/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/FlowRuleNacosProvider.java +++ b/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/FlowRuleNacosProvider.java @@ -34,8 +34,8 @@ import java.util.List; public class FlowRuleNacosProvider implements DynamicRuleProvider> { @Autowired - @Qualifier("configService") - private ConfigService configService; + @Qualifier("nacosConfiguration") + private ConfigService nacosConfiguration; @Autowired private NacosProperties nacosProperties; @Autowired @@ -44,7 +44,7 @@ public class FlowRuleNacosProvider implements DynamicRuleProvider getRules(String appName) throws Exception { String dataId=new StringBuilder(appName).append(NacosConstants.DATA_ID_POSTFIX).toString(); - String rules = configService.getConfig(dataId,nacosProperties.getGroupId(),3000); + String rules = nacosConfiguration.getConfig(dataId,nacosProperties.getGroupId(),3000); //log.info("pull FlowRule from nacos Config:"+rules); if (rules.isEmpty()) { return new ArrayList<>(); diff --git a/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/FlowRuleNacosPublisher.java b/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/FlowRuleNacosPublisher.java index 278cd7ff..7938be99 100644 --- a/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/FlowRuleNacosPublisher.java +++ b/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/FlowRuleNacosPublisher.java @@ -34,8 +34,8 @@ import java.util.List; public class FlowRuleNacosPublisher implements DynamicRulePublisher> { @Autowired - @Qualifier("configService") - private ConfigService configService; + @Qualifier("nacosConfiguration") + private ConfigService nacosConfiguration; @Autowired private NacosProperties nacosProperties; @Autowired @@ -49,6 +49,6 @@ public class FlowRuleNacosPublisher implements DynamicRulePublisher