如果dev环境consul的配置如下
spring:
cloud:
consul:
host: localhost
port: 8500
discovery:
hostname: ${spring.cloud.client.ip-address}
healthCheckPath: /actuator/health
healthCheckInterval: 15s #默认是10s 可设置ps:15s or 1m
ip-address: true
instanceId: ${spring.application.name}:${spring.cloud.client.ipaddress}:${server.port}
tags: ${spring.profiles.active}
config:
prefix: config
enabled: true #默认是true --
format: YAML # 表示consul上面文件的格式 有四种 YAML PROPERTIES KEY-VALUE FILES
defaultContext: demo-server # 表示配置文件对应的应用名称
data-key: data #表示consul上面的KEY值(或者说文件的名字) 默认是data
profileSeparator: '-'
那么请问在pre环境下。(服务器地址120.78.8.111)
cunsul的配置,尤其是host应该怎么配?