RefreshScope Runtime Configuration Without Spring Cloud Config Server
问题 Is it possible to refresh property(api-url) through POST rest api /refresh call using @RefreshScope without having setup of spring cloud config server and spring cloud config client setup. for.e.g Consumer.java @Service public class Consumer { @value(${api-url}) private String apiUrl; api-url is getting read from application.yml now. I want to change the api-url at runtime without restarting server. Is it possible in spring boot? 回答1: Yes, just include spring cloud starter <parent> <groupId