This commit is contained in:
Dave Syer
2015-05-21 14:44:15 +01:00
parent 1a55cc1c71
commit 1c862dab2b
15 changed files with 127 additions and 159 deletions

View File

@@ -54,7 +54,7 @@ public class CloudFoundryDiscoveryClientConfiguration {
public CloudFoundryClient cloudFoundryClient(CloudCredentials cc)
throws MalformedURLException {
CloudFoundryClient cloudFoundryClient = new CloudFoundryClient(cc, URI.create(
this.cloudFoundryDiscoveryProperties.getCloudControllerUrl()).toURL());
this.cloudFoundryDiscoveryProperties.getUrl()).toURL());
cloudFoundryClient.login();
return cloudFoundryClient;
}

View File

@@ -24,7 +24,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "spring.cloud.cloudfoundry.discovery")
public class CloudFoundryDiscoveryProperties {
private String cloudControllerUrl = "https://api.run.pivotal.io";
private String url = "https://api.run.pivotal.io";
private String email;
@@ -40,12 +40,12 @@ public class CloudFoundryDiscoveryProperties {
this.enabled = enabled;
}
public String getCloudControllerUrl() {
return cloudControllerUrl;
public String getUrl() {
return url;
}
public void setCloudControllerUrl(String cloudControllerUrl) {
this.cloudControllerUrl = cloudControllerUrl;
public void setUrl(String cloudControllerUrl) {
this.url = cloudControllerUrl;
}
public String getEmail() {