From 654a46f06a864a53563cdb3d59ba478701f5883a Mon Sep 17 00:00:00 2001 From: wangkang Date: Tue, 3 Jul 2018 11:08:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/bootstrap-dev.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/udf-server/udf-eureka-config-server/src/main/resources/bootstrap-dev.properties b/udf-server/udf-eureka-config-server/src/main/resources/bootstrap-dev.properties index e58d6e6..e92b6f8 100644 --- a/udf-server/udf-eureka-config-server/src/main/resources/bootstrap-dev.properties +++ b/udf-server/udf-eureka-config-server/src/main/resources/bootstrap-dev.properties @@ -11,6 +11,7 @@ eureka.environment=${spring.profiles.active} ###eureka.instance ( EurekaInstanceConfigBean ) (must reboot) ######################################################## eureka.instance.preferIpAddress=true +eureka.instance.instanceId=${spring.cloud.client.ipAddress}:${server.port} ######################################################## ###eureka.client (EurekaClientConfigBean , EurekaServerConfigBean ) (must reboot) ########################################################