@RefreshScope 替代整个应用程序

问题描述 投票:0回答:1

在使用 Spring Cloud 配置时,我遇到了@RefreshScope。

据我了解,@RefreshScope 必须与任何需要动态更新所用属性的 bean 一起使用。

是否有可以在整个应用程序中使用的全局替代方案,而不仅仅是一个 bean?

spring-boot spring-cloud-config
1个回答
0
投票

您是否在寻找:“重新启动程序?”

© www.soinside.com 2019 - 2024. All rights reserved.