Expunge .platform. from config project
Fixes gh-12
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
spring:
|
||||
platform:
|
||||
cloud:
|
||||
config:
|
||||
server:
|
||||
basedir: target/config
|
||||
|
||||
@@ -4,7 +4,7 @@ spring:
|
||||
application:
|
||||
name: configserver
|
||||
jmx:
|
||||
default_domain: platform.config.server
|
||||
default_domain: cloud.config.server
|
||||
server:
|
||||
port: 8888
|
||||
management:
|
||||
|
||||
Reference in New Issue
Block a user