###consul服务端口号
server:
port: 80
spring:
application:
name: cloud-consumer-order
####consul注册中心地址
cloud:
consul:
host: 111.230.185.44
port: 8500
discovery:
#hostname: 127.0.0.1
service-name: ${spring.application.name}
prefer-ip-address: true
heartbeat:
enabled: true
加了heartbeat.enabled.true就是发送心跳
06-21
727
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-24
1087
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-02
5912
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-07
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)