bootstrap.yml 486 B

1234567891011121314151617
  1. ##发现服务的地址
  2. eureka:
  3. client:
  4. serviceUrl:
  5. #http://账号:密码@127.0.0.1:8761/eureka/
  6. defaultZone: http://jw:jkzl@127.0.0.1:8761//eureka/
  7. instance:
  8. #eurika使用IP不使用host
  9. prefer-ip-address: true
  10. #定制化在eurika中显示的名称
  11. ##instance-id: ${spring.application.name}:${spring.application.instance_id:${server.port}}
  12. instance-id: ${spring.cloud.client.ipAddress}:${server.port}
  13. management:
  14. security:
  15. enabled: false