hexiao 1 year ago
parent
commit
bbf9a5f9d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dc-account/src/main/resources/bootstrap.yml

+ 1 - 1
dc-account/src/main/resources/bootstrap.yml

@@ -16,7 +16,7 @@ eureka:
 
     instance:
         prefer-ip-address: true  #配置是否显示ip地址,默认为false
-        instance-id: ${spring.cloud.client.ip-address}:${server.port}  #注册服务列表显示ip+端口
+        instance-id: 124.71.171.71:${server.port}  #注册服务列表显示ip+端口
     client:
         serviceUrl:
             defaultZone: http://${server}:${port}/eureka