Spring Cloud

Spring Cloud

Cloud Config

Refresh config at runtime

  1. Add @RefreshScope to your Spring configuration class to have parameters be reloadable at runtime.
  2. Add management.endpoints.web.exposure.include=refresh to your application.properties to allow unrestricted access to /actuator/refresh.
  3. Make changes to config
  4. Send a POST request to the refresh endpoint:

$ curl -X POST http://<host>/actuator/refresh

AWS

Parameter Store

Secrets Manager