微服务:领事在启用 https 时无法检查服务的健康状况
Microservice: consul couldn't check health of service when enabling https
我正在尝试在基于 Spring 云的微服务应用程序中使用 Consul。
但是当我在 tomcat 服务器中启用 HTTPS 时,consul 无法检查服务的健康状况(因为他们尝试使用 http 检查健康状况)。我收到此错误:
ani got this error: gent: http request failed 'xxxxxxxxxxxx.dsk.eur.msd.world.xxxxxx:1235/health'
尝试设置 spring.cloud.consul.discovery.scheme=https
.
我正在尝试在基于 Spring 云的微服务应用程序中使用 Consul。 但是当我在 tomcat 服务器中启用 HTTPS 时,consul 无法检查服务的健康状况(因为他们尝试使用 http 检查健康状况)。我收到此错误:
ani got this error: gent: http request failed 'xxxxxxxxxxxx.dsk.eur.msd.world.xxxxxx:1235/health'
尝试设置 spring.cloud.consul.discovery.scheme=https
.