larry 5 anos atrás
pai
commit
cc3702e269
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      src/main/resources/application.yml

+ 1 - 2
src/main/resources/application.yml

@@ -12,13 +12,12 @@ eureka:
12 12
   instance:
13 13
     prefer-ip-address: true
14 14
     # 仅测试使用,部署上线不使用
15
-    # 仅测试使用,部署上线不使用
16 15
     status-page-url-path: /swagger-ui.html
17 16
   client:
18 17
     register-with-eureka: false
19 18
     fetch-registry: false
20 19
     service-url:
21
-      defaultZone: http://${spring.cloud.client.ip-address}:${server.port}/eureka/
20
+      defaultZone: http://172.16.0.2:9511/eureka/
22 21
   server:
23 22
     # 关闭自我保护机制(不关闭会在所有服务连接异常85%后不在注销服务)
24 23
     enable-self-preservation: false