Consul 遇到的坑

均衡负载时调用的地址

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

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

引入 spring-boot-starter-actuator

          添加上 health 和 其他的 endpoint

management.endpoints.web.exposure.include=hystrix.stream,health

猜你喜欢

转载自www.cnblogs.com/Benjious/p/9557343.html