spring:
+ cloud:
+ config:
+ uri: ${vcap.services.configserver.credentials.uri:http://user:password@localhost:8888}
+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":
+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).
$ wget http://dl.bintray.com/dsyer/generic/install-0.0.1.jar
+$ wget http://dl.bintray.com/dsyer/generic/install-0.0.2.jar
$ 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