Note: Open application-file.yaml
and make sure it contains valid path to config files
docker compose up
./gradlew :config-server:bootRun --args='--spring.profiles.active=composite,file'
./gradlew :config-client:bootRun
- Send Request
curl 'http://localhost:8080/hello'
- Manually Update any user-service related file for example
/configs/user-service/application-local.yaml
- Send Request
curl 'http://localhost:8080/hello'
- Check that response contains updated values
- Also you can check refresh messages in Kafka-UI
Get Configuration from Config Server
curl 'http://localhost:8888/user-service/local/main'
Manually trigger Config Server Refresh
curl -X POST 'http://localhost:8888/monitor?path=user-service' -d '{}'