From 5fd7aee3da6beabdc1ca90d97616c4330d6763d3 Mon Sep 17 00:00:00 2001 From: "Oliver B. Fischer" Date: Thu, 19 Oct 2017 17:37:18 +0200 Subject: [PATCH 1/2] Documented how a user can disable the service registration if this is not wanted. (#363) --- docs/src/main/asciidoc/spring-cloud-consul.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/main/asciidoc/spring-cloud-consul.adoc b/docs/src/main/asciidoc/spring-cloud-consul.adoc index 89ed1d5e..9912de8f 100644 --- a/docs/src/main/asciidoc/spring-cloud-consul.adoc +++ b/docs/src/main/asciidoc/spring-cloud-consul.adoc @@ -74,6 +74,8 @@ The default service name, instance id and port, taken from the `Environment`, ar To disable the Consul Discovery Client you can set `spring.cloud.consul.discovery.enabled` to `false`. +To disable the service registration you can set `spring.cloud.consul.discovery.register` to `false`. + === HTTP Health Check The health check for a Consul instance defaults to "/health", which is the default locations of a useful endpoint in a Spring Boot Actuator application. You need to change these, even for an Actuator application if you use a non-default context path or servlet path (e.g. `server.servletPath=/foo`) or management endpoint path (e.g. `management.context-path=/admin`). The interval that Consul uses to check the health endpoint may also be configured. "10s" and "1m" represent 10 seconds and 1 minute respectively. Example: From e41c6b6c8b7d24a7ac8acc0d102d17097715f596 Mon Sep 17 00:00:00 2001 From: Vinicius Isola Date: Thu, 19 Oct 2017 11:37:52 -0400 Subject: [PATCH 2/2] Fixes #343 (#359) Add a reference to Config Watch. --- docs/src/main/asciidoc/spring-cloud-consul.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/spring-cloud-consul.adoc b/docs/src/main/asciidoc/spring-cloud-consul.adoc index 9912de8f..30832ea1 100644 --- a/docs/src/main/asciidoc/spring-cloud-consul.adoc +++ b/docs/src/main/asciidoc/spring-cloud-consul.adoc @@ -153,7 +153,7 @@ config/application/ The most specific property source is at the top, with the least specific at the bottom. Properties in the `config/application` folder are applicable to all applications using consul for configuration. Properties in the `config/testApp` folder are only available to the instances of the service named "testApp". -Configuration is currently read on startup of the application. Sending a HTTP POST to `/refresh` will cause the configuration to be reloaded. Watching the key value store (which Consul supports) is not currently possible, but will be a future addition to this project. +Configuration is currently read on startup of the application. Sending a HTTP POST to `/refresh` will cause the configuration to be reloaded. <> will also automatically detect changes and reload the application context. === How to activate