Spring boot 如何在启用引导的情况下使用RefreshScope

Spring boot 如何在启用引导的情况下使用RefreshScope,spring-boot,spring-cloud,spring-cloud-config,Spring Boot,Spring Cloud,Spring Cloud Config,我有一个使用SpringCloudConfig客户端的SpringBoot应用程序,我有一个由应用程序中的@RefreshScope注释注释的控制器 此时,刷新(发布到http://localhost:8889/actuator/refresh)为我工作 然后,我需要添加以下依赖项(据我所知)来有效地打开引导 <dependency> <groupId>org.springframework.cloud</groupId>

我有一个使用SpringCloudConfig客户端的SpringBoot应用程序,我有一个由应用程序中的
@RefreshScope
注释注释的控制器

此时,刷新(发布到http://localhost:8889/actuator/refresh)为我工作

然后,我需要添加以下依赖项(据我所知)来有效地打开引导

    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-bootstrap</artifactId>
    </dependency>
我注意到,使用引导时,会创建bean
LegacyContextRefresh
,而不是以前使用的
ConfigDataContextRefresh
。。。但我还没有弄明白如何使刷新与引导一起工作

    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-bootstrap</artifactId>
    </dependency>
任何帮助都将不胜感激