在配置文件中添加: spring.cloud.consul.discovery.health-check-url:http://ip:8500
ip指的是consul中的IP地址
spring:
cloud:
consul:
# consul注册中心地址
host: ip
port: 8500
discovery:
health-check-url: http://ip:8500
在配置文件中添加: spring.cloud.consul.discovery.health-check-url:http://ip:8500
ip指的是consul中的IP地址
spring:
cloud:
consul:
# consul注册中心地址
host: ip
port: 8500
discovery:
health-check-url: http://ip:8500