[Spring Boot]如何动态刷新配置

因为时间关系,仅记录要点: 1.引入 spring-boot-starter-actuator及spring-cloud-starter-config 2.对须要刷新的属性使用@Value注解,同时将类使用@RefreshScope注解进行标记web import org.springframework.beans.factory.annotation.Value; import org.spri
相关文章
相关标签/搜索