This repository contains config files served by the snippo config server.
Profiles are used to separate configs between environments. Spring Boot applications can apply profiles by setting the spring.profiles.active
property. When multiple profiles are set, the last profile has the highest precedence.
RELEASE
- Production release build configSNAPSHOT
- Dev build configPROD
- ProductionDEV
- DEVLOCAL
- For local development. Usually used in conjunction withDEV
There are three ways to refresh configs
- Call the application's
actuator/refresh
endpoint. - Restart the application.
- Call the config server's
refresh-all
endpoint to refresh all applications connected to the hazelcast cluster.
Note: Calling the refresh or refresh-all endpoints will only refresh configuration properties in classes annotated with @RefreshScope
or @ConfigurationProperties
.