Browse Source

Allow other configures to run before PropertiesRestClientHttpServiceGroupConfigurer

Closes gh-48296
pull/48312/head
Stéphane Nicoll 3 weeks ago
parent
commit
72eaeecd5c
  1. 7
      module/spring-boot-restclient/src/main/java/org/springframework/boot/restclient/autoconfigure/service/PropertiesRestClientHttpServiceGroupConfigurer.java

7
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; @@ -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 @@ -66,7 +71,7 @@ class PropertiesRestClientHttpServiceGroupConfigurer implements RestClientHttpSe
@Override
public int getOrder() {
return Ordered.HIGHEST_PRECEDENCE;
return DEFAULT_ORDER;
}
@Override

Loading…
Cancel
Save