From 72eaeecd5cdee201da3a4606088a2afa935c1764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Wed, 26 Nov 2025 16:06:24 +0100 Subject: [PATCH] Allow other configures to run before PropertiesRestClientHttpServiceGroupConfigurer Closes gh-48296 --- .../PropertiesRestClientHttpServiceGroupConfigurer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/spring-boot-restclient/src/main/java/org/springframework/boot/restclient/autoconfigure/service/PropertiesRestClientHttpServiceGroupConfigurer.java b/module/spring-boot-restclient/src/main/java/org/springframework/boot/restclient/autoconfigure/service/PropertiesRestClientHttpServiceGroupConfigurer.java index de51394a735..b426bf04f70 100644 --- a/module/spring-boot-restclient/src/main/java/org/springframework/boot/restclient/autoconfigure/service/PropertiesRestClientHttpServiceGroupConfigurer.java +++ b/module/spring-boot-restclient/src/main/java/org/springframework/boot/restclient/autoconfigure/service/PropertiesRestClientHttpServiceGroupConfigurer.java @@ -48,6 +48,11 @@ import org.springframework.web.service.registry.HttpServiceGroup; */ class PropertiesRestClientHttpServiceGroupConfigurer implements RestClientHttpServiceGroupConfigurer { + /** + * The default order for the PropertiesRestClientHttpServiceGroupConfigurer. + */ + private static final int DEFAULT_ORDER = Ordered.HIGHEST_PRECEDENCE + 10; + private final HttpServiceClientProperties properties; private final HttpClientSettingsPropertyMapper clientSettingsPropertyMapper; @@ -66,7 +71,7 @@ class PropertiesRestClientHttpServiceGroupConfigurer implements RestClientHttpSe @Override public int getOrder() { - return Ordered.HIGHEST_PRECEDENCE; + return DEFAULT_ORDER; } @Override