discovery prefer ip

This commit is contained in:
jooho
2021-10-21 16:49:48 +09:00
parent b40bce5156
commit a98e7508e4

View File

@@ -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 # 외부 검색 가능