From 9bcfee8a3a1f150b83f8cb4ea4c31e3bfec75679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abderrazak=20=28=D8=B9=D8=A8=D8=AF=D8=A7=D9=84=D8=B1=D8=B2?= =?UTF-8?q?=D8=A7=D9=82=29?= Date: Tue, 28 Feb 2017 17:20:13 +0100 Subject: [PATCH] fixed management.context-path placeholder name (#284) --- docs/src/main/asciidoc/spring-cloud-consul.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/spring-cloud-consul.adoc b/docs/src/main/asciidoc/spring-cloud-consul.adoc index 8bde4bec..d55c1be5 100644 --- a/docs/src/main/asciidoc/spring-cloud-consul.adoc +++ b/docs/src/main/asciidoc/spring-cloud-consul.adoc @@ -77,7 +77,7 @@ The default service name, instance id and port, taken from the `Environment`, ar === 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.contextPath=/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: +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: .application.yml ---- @@ -85,7 +85,7 @@ spring: cloud: consul: discovery: - healthCheckPath: ${management.contextPath}/health + healthCheckPath: ${management.context-path}/health healthCheckInterval: 15s ----