Skip to main content
deleted 3 characters in body
Source Link
user2057006
  • 647
  • 5
  • 15
  • 29

Is it possible to refresh property(api-url) through POST rest api /refresh call using @RefreshScope instead ofwithout 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?

Is it possible to refresh property through POST rest api call using @RefreshScope instead of 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?

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?

Source Link
user2057006
  • 647
  • 5
  • 15
  • 29

RefreshScope Runtime Configuration Without Spring Cloud Config Server

Is it possible to refresh property through POST rest api call using @RefreshScope instead of 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?