spring:
cloud:
nacos:
config:
# 共享配置
shared-configs:
- dataId: common.yml
refresh: true
Nacos共享common.yml 配置 且支持动态刷新
在需要动态获取最新配置的类上加 @RefreshScope 注解
spring:
cloud:
nacos:
config:
# 共享配置
shared-configs:
- dataId: common.yml
refresh: true
Nacos共享common.yml 配置 且支持动态刷新
在需要动态获取最新配置的类上加 @RefreshScope 注解