Upgrade Spring Boot Admin to 4.0.0-M2 for Spring Boot 4 compatibility#508
Upgrade Spring Boot Admin to 4.0.0-M2 for Spring Boot 4 compatibility#508yousfiSaad wants to merge 1 commit intospring-petclinic:mainfrom
Conversation
|
Hi @arey, I understand your hesitation about the milestone version (4.0.0-M2). I'm not entirely convinced we should merge this as-is either - I mainly wanted to share the findings and the potential workaround. Some context on why I created this PR: The Regarding the milestone version:
Options moving forward:
I'm open to your thoughts on the best path forward. |
|
Hi @yousfiSaad, could you describe the scenario that leads to the DNS resolution issue you mentioned? |
The previous version (3.4.1) was incompatible with Spring Boot 4, causing ClassNotFoundException: WebClientAutoConfiguration at startup. This upgrade resolves the compatibility issue without needing any DNS resolution workarounds.
Update: Investigation ResultsAfter further investigation, the original diagnosis of a "Netty DNS resolution issue" was incorrect. What was actually wrongThe real issue was Spring Boot 4 incompatibility with Spring Boot Admin 3.4.1, which caused:
The fixUpgrading Spring Boot Admin from Why no WebClientConfig?The originally proposed
Lesson learnedAlways verify the root cause before implementing workarounds. The original symptoms were likely caused by insufficient VM memory, not DNS issues. Note: The branch name ( |
75a8fdd to
3c757d4
Compare
|
|
Duplicated with #513 |



Summary
This PR fixes DNS resolution issues in Docker environments for Spring Boot Admin
when running with Spring Boot 4.
Problem
Spring Boot Admin fails to resolve container hostnames in Docker environments
due to Netty's native epoll resolver, which has issues resolving container
hostnames in Docker.
Solution
resolver instead of Netty's native resolver
Changes
spring-petclinic-admin-server/pom.xml: Spring Boot Admin 3.4.1 → 4.0.0-M2spring-petclinic-admin-server/src/main/java/.../admin/config/WebClientConfig.java: NEWRelated Issues
Fixes #487