Spring cloud Spring@RefreshScope-有条件地重新加载/刷新bean

Spring cloud Spring@RefreshScope-有条件地重新加载/刷新bean,spring-cloud,Spring Cloud,我在@Configuration类中使用@RefreshScope注释bean,可以使用/exactor/refresh端点重新加载bean。如果application.properties中有任何更改,则在POST/ACTURATOR/refresh时,它会将标记为@RefreshScope的bean标记为reload,以便下次访问时重新加载该bean 有没有办法配置@RefreshScope,使bean仅在某些情况下刷新,而不是针对application.properties中的每个更改?例

我在@Configuration类中使用@RefreshScope注释bean,可以使用/exactor/refresh端点重新加载bean。如果application.properties中有任何更改,则在POST/ACTURATOR/refresh时,它会将标记为@RefreshScope的bean标记为reload,以便下次访问时重新加载该bean

有没有办法配置@RefreshScope,使bean仅在某些情况下刷新,而不是针对application.properties中的每个更改?例如:基于application.properties中属性标志的值

问候,, 雅各布