Skip to content

Commit 1ac0d50

Browse files
dlwldnjs1009wilkinsona
authored andcommitted
Allow other configurers to run before PropertiesWebClientHttpServiceGroupConfigurer
Apply the same fix as 72eaeec 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 <dlwldnjs1009@gmail.com>
1 parent a1e784e commit 1ac0d50

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

module/spring-boot-webclient/src/main/java/org/springframework/boot/webclient/autoconfigure/service/PropertiesWebClientHttpServiceGroupConfigurer.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
*/
4848
class PropertiesWebClientHttpServiceGroupConfigurer implements WebClientHttpServiceGroupConfigurer {
4949

50+
/**
51+
* The default order for the PropertiesWebClientHttpServiceGroupConfigurer.
52+
*/
53+
private static final int DEFAULT_ORDER = Ordered.HIGHEST_PRECEDENCE + 10;
54+
5055
private final HttpServiceClientProperties properties;
5156

5257
private final HttpClientSettingsPropertyMapper clientSettingsPropertyMapper;
@@ -65,7 +70,7 @@ class PropertiesWebClientHttpServiceGroupConfigurer implements WebClientHttpServ
6570

6671
@Override
6772
public int getOrder() {
68-
return Ordered.HIGHEST_PRECEDENCE;
73+
return DEFAULT_ORDER;
6974
}
7075

7176
@Override

0 commit comments

Comments
 (0)