0Pricing
Spring Boot 4 Microservices & REST APIs · Lesson

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: refresh

All lessons in this course

  1. The Config Server
  2. Git-Backed Configuration
  3. Config Clients
  4. Refreshing Configuration at Runtime
← Back to Spring Boot 4 Microservices & REST APIs