@ -1,6 +1,17 @@
server:
context-path: ${server.context-path.svr-configurations-context-path}
#发现服务
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}}
---