Run docker-compose up --build
This application read configuration value from Spring Cloud Config Server
- Update config value in "config/a-bootiful-client.properties" e.g.
message = Hello world again!
- Commit the changes as we use
spring.cloud.config.server.git.uri
(Git Backend) for the configuration
curl localhost:8080/actuator/refresh -d {} -H "Content-Type: application/json"
If succeeded the output of curl
will be ["config.client.version","message"]%
See changes on http://localhost:8080/message
- Use Vault Backend https://cloud.spring.io/spring-cloud-config/reference/html/#vault-backend
- Explore
Spring Boot Actuator
for configuration reload https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html