[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
相關文章
相關標籤/搜索