|
@ -10,6 +10,15 @@ spring:
|
|
enabled: true #使用发现服务
|
|
enabled: true #使用发现服务
|
|
service-id: svr-configurations #配置服务的名字
|
|
service-id: svr-configurations #配置服务的名字
|
|
|
|
|
|
|
|
eureka:
|
|
|
|
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}
|
|
|
|
health-check-url-path: /health
|
|
|
|
|
|
|
|
|
|
---
|
|
---
|
|
spring:
|
|
spring:
|