From 32eec04ef9d914707f7838931b7b3a2678065f12 Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Wed, 2 Oct 2024 18:43:15 +0200 Subject: [PATCH] Document lack of support for random port with AOT and native. Fixes gh-4235. --- docs/modules/ROOT/pages/spring-cloud-netflix.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/spring-cloud-netflix.adoc b/docs/modules/ROOT/pages/spring-cloud-netflix.adoc index 415ab20ea..0fd0485c8 100755 --- a/docs/modules/ROOT/pages/spring-cloud-netflix.adoc +++ b/docs/modules/ROOT/pages/spring-cloud-netflix.adoc @@ -377,7 +377,9 @@ We take `eureka.client.availabilityZones`, which is a map from region name to a Spring Cloud Netflix Eureka Client integration supports Spring AOT transformations and native images, however, only with refresh mode disabled. -WARNING: If you want to run Eureka Client in AOT or native image modes, make sure to set `spring.cloud.refresh.enabled` to `false` +WARNING: If you want to run Eureka Client in AOT or native image modes, make sure to set `spring.cloud.refresh.enabled` to `false`. + +NOTE: Given the AOT and native image closed-world assumption, using random port with Eureka clients is not supported for ahead of time compilation or native images. [[spring-cloud-eureka-server]] == Service Discovery: Eureka Server