From ee0f0fbbb92f628fb9474efb002581857dd061b5 Mon Sep 17 00:00:00 2001 From: Lee JiWon Date: Wed, 10 Jun 2026 17:24:00 +0900 Subject: [PATCH] Allow other configurers to run before PropertiesWebClientHttpServiceGroupConfigurer Apply the same fix as 72eaeecd5cd to the WebClient sibling so that a WebClientHttpServiceGroupConfigurer can be ordered ahead of the properties configurer to supply an initial WebClient.Builder. Signed-off-by: Lee JiWon --- .../PropertiesWebClientHttpServiceGroupConfigurer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/spring-boot-webclient/src/main/java/org/springframework/boot/webclient/autoconfigure/service/PropertiesWebClientHttpServiceGroupConfigurer.java b/module/spring-boot-webclient/src/main/java/org/springframework/boot/webclient/autoconfigure/service/PropertiesWebClientHttpServiceGroupConfigurer.java index b4460fbab52d..c9d5770316f0 100644 --- a/module/spring-boot-webclient/src/main/java/org/springframework/boot/webclient/autoconfigure/service/PropertiesWebClientHttpServiceGroupConfigurer.java +++ b/module/spring-boot-webclient/src/main/java/org/springframework/boot/webclient/autoconfigure/service/PropertiesWebClientHttpServiceGroupConfigurer.java @@ -47,6 +47,11 @@ */ class PropertiesWebClientHttpServiceGroupConfigurer implements WebClientHttpServiceGroupConfigurer { + /** + * The default order for the PropertiesWebClientHttpServiceGroupConfigurer. + */ + private static final int DEFAULT_ORDER = Ordered.HIGHEST_PRECEDENCE + 10; + private final HttpServiceClientProperties properties; private final HttpClientSettingsPropertyMapper clientSettingsPropertyMapper; @@ -65,7 +70,7 @@ class PropertiesWebClientHttpServiceGroupConfigurer implements WebClientHttpServ @Override public int getOrder() { - return Ordered.HIGHEST_PRECEDENCE; + return DEFAULT_ORDER; } @Override