Browse Source

不使用localhost

trick9191 7 years ago
parent
commit
2f8dcb409b
1 changed files with 9 additions and 0 deletions
  1. 9 0
      svr/svr-wlyy-health-bank/src/main/resources/bootstrap.yml

+ 9 - 0
svr/svr-wlyy-health-bank/src/main/resources/bootstrap.yml

@ -10,6 +10,15 @@ spring:
        enabled: true #使用发现服务
        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: