Merge remote-tracking branch 'origin/master' into 2.0.x

This commit is contained in:
Ryan Baxter
2017-09-25 14:17:48 -04:00
11 changed files with 107 additions and 20 deletions

View File

@@ -42,7 +42,6 @@ Example Consul client:
[source,java,indent=0]
----
@SpringBootApplication
@EnableDiscoveryClient
@RestController
public class Application {
@@ -73,7 +72,7 @@ CAUTION: If you use <<spring-cloud-consul-config,Spring Cloud Consul Config>>, t
The default service name, instance id and port, taken from the `Environment`, are `${spring.application.name}`, the Spring Context ID and `${server.port}` respectively.
`@EnableDiscoveryClient` make the app into both a Consul "service" (i.e. it registers itself) and a "client" (i.e. it can query Consul to locate other services).
To disable the Consul Discovery Client you can set `spring.cloud.consul.discovery.enabled` to `false`.
=== HTTP Health Check
@@ -322,7 +321,6 @@ The `clusterConfig` and `appConfig` sections must match, so it's useful to put t
.Turbine.java
----
@EnableTurbine
@EnableDiscoveryClient
@SpringBootApplication
public class Turbine {
public static void main(String[] args) {