Browse Source

打开注册中心

txf 3 years ago
parent
commit
00687ecdb1
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/main/resources/bootstrap.yml

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

@@ -17,7 +17,10 @@ eureka:
   client:
     service-url:
       defaultZone: http://root:root@${EUREKA_HOST:localhost}:${EUREKA_PORT:8061}/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}
 #feign设置
 openfeign:
   ESFeign: