Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Configuration source backed by git
ConfigurationProvider configurationProvider(@Value("${configuration.environment}") String configurationEnvironment) {
ConfigurationSource GitSource = new GitConfigurationSourceBuilder()
return new ConfigurationProviderBuilder()
.withEnvironment(new ImmutableEnvironment("app/" + configurationEnvironment + "/feature"))
.withReloadStrategy(new PeriodicalReloadStrategy(30, TimeUnit.SECONDS))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment