diff --git a/spring-cloud.html b/spring-cloud.html index f5049f5..1cad014 100644 --- a/spring-cloud.html +++ b/spring-cloud.html @@ -1157,6 +1157,22 @@ properties, e.g.

values override anything that is provided in the URI.

+

If you deploy your apps on Cloud Foundry then the best way to provide +the password is through service credentials, e.g. in the URI, since +then it doesn’t even need to be in a config file. An example which +works locally and for a user-provided service on Cloud Foundry named +"configserver":

+
+
+
bootstrap.yml
+
+
spring:
+  cloud:
+    config:
+     uri: ${vcap.services.configserver.credentials.uri:http://user:password@localhost:8888}
+
+
+

If you use another form of security you might need to provide a RestTemplate to the ConfigServicePropertySourceLocator (e.g. by grabbing it in the bootstrap context and injecting one).

@@ -1660,7 +1676,7 @@ $ gvm use springboot 1.1.5.RELEASE
-
$ wget http://dl.bintray.com/dsyer/generic/install-0.0.1.jar
+
$ wget http://dl.bintray.com/dsyer/generic/install-0.0.2.jar
@@ -1668,7 +1684,7 @@ $ gvm use springboot 1.1.5.RELEASE
-
$ cp install-0.0.1.jar ~/.gvm/springboot/1.1.5.RELEASE/lib
+
$ cp install-0.0.2.jar ~/.gvm/springboot/1.1.5.RELEASE/lib
@@ -1887,7 +1903,7 @@ and puts it in a request header for the downstream requests.