Parcourir la source

更新 'src/main/resources/bootstrap.yml'

胡建国 il y a 3 ans
Parent
commit
04141e0e75
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      src/main/resources/bootstrap.yml

+ 5 - 1
src/main/resources/bootstrap.yml

@@ -20,7 +20,11 @@ openfeign:
 eureka:
   client:
     service-url:
-      defaultZone: http://root:root@discovery.steerinfo.com/eureka/
+      defaultZone: http://root:root@${EUREKA_HOST:paas-discovery-test.steerinfo.com}:${EUREKA_PORT:80}/eureka/
+  instance:
+    prefer-ip-address: true
+    status-page-url: http://${spring.cloud.client.ip-address}:${server.port}/swagger-ui.html#/
+    instance-id: ${spring.cloud.client.ip-address}:${server.port}
 
 genxml:
   pth: com/a