Nacos Config动态刷新值

1.通过@Value 和@RefreshScope实现动态刷新
2.将动态刷新的值放到自定义配置文件中,通过@ConfigurationProperties(prefix="user")和@EnableConfigurationProperties({UserProperties.class})实现动态刷新
posted @ 2021-03-30 16:27  沟渠映明月  阅读(1959)  评论(0编辑  收藏  举报