diff --git a/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceGroupConfigurer.java b/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceGroupConfigurer.java index 92f22a15c37..3f2c8849dd2 100644 --- a/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceGroupConfigurer.java +++ b/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceGroupConfigurer.java @@ -20,6 +20,7 @@ import java.util.function.BiConsumer; import java.util.function.Consumer; import java.util.function.Predicate; +import org.springframework.core.Ordered; import org.springframework.web.service.invoker.HttpServiceProxyFactory; /** @@ -31,13 +32,22 @@ import org.springframework.web.service.invoker.HttpServiceProxyFactory; * @param the type of client builder, i.e. {@code RestClient} or {@code WebClient} builder. */ @FunctionalInterface -public interface HttpServiceGroupConfigurer { +public interface HttpServiceGroupConfigurer extends Ordered { /** * Configure the underlying infrastructure for all group. */ void configureGroups(Groups groups); + /** + * Determine the order of this configurer relative to others. + *

By default, this is {@link Ordered#LOWEST_PRECEDENCE}. + */ + @Override + default int getOrder() { + return Ordered.LOWEST_PRECEDENCE; + } + /** * Contract to help iterate and configure the set of groups.