Expunge .platform. from config project

Fixes gh-12
This commit is contained in:
Dave Syer
2014-10-13 14:16:47 +01:00
parent 0800d33a75
commit 3f05eddc42
11 changed files with 13 additions and 13 deletions

View File

@@ -48,7 +48,7 @@ $ curl localhost:8888/foo/development
----
The default strategy for locating property sources is to clone a git
repository (at "spring.platform.config.server.uri") and use it to
repository (at "spring.cloud.config.server.uri") and use it to
initialize a mini `SpringApplication`. The mini-application's
`Environment` is used to enumerate property sources and publish them
via a JSON endpoint. The service has resources in the form:
@@ -181,7 +181,7 @@ The sample has a test case where the config server is also started in
the same JVM (with a different port), and the test asserts that an
environment property from the git configuration repo is present. To
change the location of the config server just set
"spring.platform.config.uri" in "bootstrap.yml" (or via System
"spring.cloud.config.uri" in "bootstrap.yml" (or via System
properties etc.).
The test case has a `main()` method that runs the server in the same

View File

@@ -48,7 +48,7 @@ $ curl localhost:8888/foo/development
----
The default strategy for locating property sources is to clone a git
repository (at "spring.platform.config.server.uri") and use it to
repository (at "spring.cloud.config.server.uri") and use it to
initialize a mini `SpringApplication`. The mini-application's
`Environment` is used to enumerate property sources and publish them
via a JSON endpoint. The service has resources in the form:
@@ -181,7 +181,7 @@ The sample has a test case where the config server is also started in
the same JVM (with a different port), and the test asserts that an
environment property from the git configuration repo is present. To
change the location of the config server just set
"spring.platform.config.uri" in "bootstrap.yml" (or via System
"spring.cloud.config.uri" in "bootstrap.yml" (or via System
properties etc.).
The test case has a `main()` method that runs the server in the same

View File

@@ -40,7 +40,7 @@ The sample has a test case where the config server is also started in
the same JVM (with a different port), and the test asserts that an
environment property from the git configuration repo is present. To
change the location of the config server just set
"spring.platform.config.uri" in "bootstrap.yml" (or via System
"spring.cloud.config.uri" in "bootstrap.yml" (or via System
properties etc.).
The test case has a `main()` method that runs the server in the same

View File

@@ -18,7 +18,7 @@ $ curl localhost:8888/foo/development
----
The default strategy for locating property sources is to clone a git
repository (at "spring.platform.config.server.uri") and use it to
repository (at "spring.cloud.config.server.uri") and use it to
initialize a mini `SpringApplication`. The mini-application's
`Environment` is used to enumerate property sources and publish them
via a JSON endpoint. The service has resources in the form:

View File

@@ -260,7 +260,7 @@ It is a good idea to set the `spring.application.name` in
configuration from the server.
You can disable the bootstrap process completely by setting
`spring.platform.bootstrap.enabled=false` (e.g. in System properties).
`spring.cloud.bootstrap.enabled=false` (e.g. in System properties).
=== Customizing the Bootstrap

View File

@@ -60,7 +60,7 @@ public class BootstrapApplicationListener implements
@Override
public void onApplicationEvent(ApplicationEnvironmentPreparedEvent event) {
Environment environment = event.getEnvironment();
if (!environment.getProperty("spring.platform.bootstrap.enabled", Boolean.class,
if (!environment.getProperty("spring.cloud.bootstrap.enabled", Boolean.class,
true)) {
return;
}

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<!-- logger name="org.springframework.platform" level="DEBUG"/-->
<!-- logger name="org.springframework.cloud" level="DEBUG"/-->
<logger name="org.springframework" level="INFO"/>
</configuration>

View File

@@ -45,7 +45,7 @@ import org.springframework.util.FileSystemUtils;
*/
public class JGitEnvironmentRepository implements EnvironmentRepository {
public static final String DEFAULT_URI = "https://github.com/spring-platform-samples/config-repo";
public static final String DEFAULT_URI = "https://github.com/spring-cloud-samples/config-repo";
private static Log logger = LogFactory.getLog(JGitEnvironmentRepository.class);

View File

@@ -77,7 +77,7 @@ public class SpringApplicationEnvironmentRepository implements EnvironmentReposi
config = "application," + config;
}
list.add("--spring.config.name=" + config);
list.add("--spring.platform.bootstrap.enabled=false");
list.add("--spring.cloud.bootstrap.enabled=false");
if (locations != null) {
list.add("--spring.config.location="
+ StringUtils.arrayToCommaDelimitedString(locations));

View File

@@ -1,5 +1,5 @@
spring:
platform:
cloud:
config:
server:
basedir: target/config

View File

@@ -4,7 +4,7 @@ spring:
application:
name: configserver
jmx:
default_domain: platform.config.server
default_domain: cloud.config.server
server:
port: 8888
management: