From a98e7508e49eddf609deae70b2b174ad1b15a3e2 Mon Sep 17 00:00:00 2001 From: jooho Date: Thu, 21 Oct 2021 16:49:48 +0900 Subject: [PATCH] discovery prefer ip --- config/application.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/config/application.yml b/config/application.yml index 30ee56d..db826d2 100644 --- a/config/application.yml +++ b/config/application.yml @@ -7,6 +7,7 @@ token: eureka: instance: instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}} # random port 사용시 eureka server에 인스턴스가 각각 표시되지 않는다 + preferIpAddress: true # 서비스간 통신 시 hostname 보다 ip 를 우선 client: register-with-eureka: true # eureka 서버에 등록 fetch-registry: true # 외부 검색 가능