Consul 遇到的坑

均衡负载时调用的地址

spring.cloud.consul.discovery.service-name=

          当A服务调用B服务时,可以转发到注册中心进行转发调用, 应该使用这个地址,这一点和eureka 不同,需要注意

 

引入 spring-boot-starter-actuator

          添加上 health 和 其他的 endpoint

management.endpoints.web.exposure.include=hystrix.stream,health
posted @ 2018-08-29 22:21  float123  阅读(580)  评论(0编辑  收藏  举报