1.通过@Value 和@RefreshScope实现动态刷新 2.将动态刷新的值放到自定义配置文件中,通过@ConfigurationProperties(prefix="user")和@EnableConfigurationProperties({UserProperties.class})实现动态刷新 相关文章: 2021-12-01 2022-12-23 2021-07-17 2022-12-23 2021-08-06 2021-06-09 2022-01-28