Spring 领事健康检查:503服务不可用

Spring 领事健康检查:503服务不可用,spring,spring-boot,spring-cloud,consul,Spring,Spring Boot,Spring Cloud,Consul,我正在我的应用程序中使用SpringCloud领事。当我启动应用程序时,我没有任何例外(服务在Consor中注册)。但当领事检查健康时,我发现了这个错误: HTTP GET https://xxxxxxxxxx:8181/health: 503 Service Unavailable Output: { "status" : "DOWN" } 这是我的配置文件: spring: application: name: @pom.artifactId@ cloud

我正在我的应用程序中使用SpringCloud领事。当我启动应用程序时,我没有任何例外(服务在Consor中注册)。但当领事检查健康时,我发现了这个错误:

HTTP GET https://xxxxxxxxxx:8181/health: 503 Service Unavailable Output: {
"status" : "DOWN"
}
这是我的配置文件:

   spring:
    application:
      name: @pom.artifactId@
    cloud:
     config:
       enabled: false

   consul:
     config:
       enabled: true
        host: localhost
        port: 8500
     discovery:
        scheme: https

  endpoints:
   health:
    sensitive: false
   restart:
     enabled: true
   shutdown:
     enabled: true
我的pom如下:

     <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-consul-all</artifactId>
        <version>1.0.0.M6</version>
    </dependency>

org.springframework.cloud
春云入门
1.0.0.M6

看起来您的配置有点不正确。 最新版本包含以下配置示例:

spring:
  cloud:
    consul:
      host: localhost
      port: 8500
顺便说一句:最新的
spring cloud consul
版本是
RC1