spring: application: name: svr-configurations security: user: name: jw password: jkzl #发现服务 eureka: client: healthcheck: enabled: true #启动监控检查 instance: #eurika使用IP不使用host prefer-ip-address: true #定制化在eurika中显示的名称 ##instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}} instance-id: ${spring.cloud.client.ipAddress}:${server.port} --- spring: profiles: jwdev ##git配置 cloud: config: failFast: true ##启动快速失败 即链接不到配置服务就启动失败 server: git: #uri: http://192.168.1.220:10080/chenweida/jw.config.git #uri: http://192.168.116.100:10080/chenweida/mini.jw.config.git uri: http://192.168.1.220:10080/chenyongxing/jw.config.git default-label: master --- spring: profiles: jwtest ##git配置 cloud: config: server: git: uri: http://192.168.1.220:10080/EHR/ehr.config.git default-label: dev --- spring: profiles: jwprod ##git配置 cloud: config: server: git: uri: http://11.1.2.8:3000/ehr_admin/ehr.config.git default-label: master