Refreshing Configuration at Runtime
Update config without restarting services.
Config changes without restarts
By default clients read config only at startup. To apply a changed value without restarting, Spring Cloud provides runtime refresh.
The Actuator refresh endpoint
Add Spring Boot Actuator and expose the refresh endpoint. Posting to it makes the client re-fetch config from the server.
management:
endpoints:
web:
exposure:
include: refreshAll lessons in this course
- The Config Server
- Git-Backed Configuration
- Config Clients
- Refreshing Configuration at Runtime