Merge pull request #193 from imduffy15/patch-1

Fix example segment of code
This commit is contained in:
Spencer Gibb
2016-06-01 13:08:02 -06:00

View File

@@ -123,7 +123,7 @@ You can also use the `org.springframework.cloud.client.discovery.DiscoveryClient
private DiscoveryClient discoveryClient;
public String serviceUrl() {
List<ServiceInstance> list = client.getInstances("STORES");
List<ServiceInstance> list = discoveryClient.getInstances("STORES");
if (list != null && list.size() > 0 ) {
return list.get(0).getUri();
}
@@ -308,4 +308,4 @@ public class Turbine {
SpringApplication.run(DemoturbinecommonsApplication.class, args);
}
}
----
----