Separate spring.platform.[config,config.server]

This commit is contained in:
Dave Syer
2014-06-14 23:15:18 +01:00
parent 5bea0ccc0f
commit 7c50e413eb
3 changed files with 4 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ $ curl localhost:8888/foo/development
```
The default strategy for locating property sources is to clone a git
repository (at "spring.platform.config.uri") and use it to initialize
repository (at "spring.platform.config.server.uri") and use it to initialize
a `SpringApplication`. The application's `Environment` is used to
enumerate property sources. The service has resources in the form:
@@ -58,7 +58,7 @@ the startup behaviour you can change the location of the server using
bootstrap phase of an application context), e.g.
```
spring.platform.config.url: http://myconfigserver.com
spring.platform.config.uri: http://myconfigserver.com
```
## Sample Application

View File

@@ -61,6 +61,7 @@ public class ConfigServiceBootstrapConfiguration implements
if (source == null) {
continue;
}
logger.info("Located property source: " + source);
composite.addPropertySource(source);
empty = false;
}

View File

@@ -54,7 +54,7 @@ public class Application {
@Profile("!native")
protected static class GitRepositoryConfiguration {
@Bean
@ConfigurationProperties("spring.platform.config")
@ConfigurationProperties("spring.platform.config.server")
public JGitEnvironmentRepository repository() {
return new JGitEnvironmentRepository();
}