Closed nickcodefresh closed 2 years ago
I still have the same issue with spring-cloud 2022.0.1.
But it seems to be related to consul.
If you set the application property spring.cloud.service-registry.auto-registration.enabled=false
the issue doesn't happen again.
It seems that the method org.springframework.cloud.consul.serviceregistry.ConsulAutoServiceRegistration#setPortIfNeeded
is the culprit.
If I add
org.springframework.cloud:spring-cloud-starter-openfeign
to my POM and then runmvn -Pnative -DskipTests clean package
the resulting native application fails to start with:Running the non-native application works fine, and removing this dependency also allows the application to start up as normal.
Any idea what this might be? I'm running Spring Boot 3.0.0-RC1, Sping Cloud 4.0.0-SNAPSHOT (locally compiled) and GraalVM CE 22.3.0 JDK.