From 96e2ad00b13728b32084d5582b51fad9d7dd311b Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 16 Sep 2024 11:41:05 +0300 Subject: [PATCH] Use proper config key for REST Client override URI (cherry picked from commit f2f4a2febc0f8861c7567b02d60cbfaa467f3317) --- .../rest/client/reactive/runtime/RestClientBuilderImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/resteasy-reactive/rest-client/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientBuilderImpl.java b/extensions/resteasy-reactive/rest-client/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientBuilderImpl.java index 828034de5c9be..ceddd80f6ec89 100644 --- a/extensions/resteasy-reactive/rest-client/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientBuilderImpl.java +++ b/extensions/resteasy-reactive/rest-client/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientBuilderImpl.java @@ -399,7 +399,8 @@ public T build(Class aClass) throws IllegalStateException, RestClientDefi RestClientsConfig restClients = config.getConfigMapping(RestClientsConfig.class); // support overriding the URI from the override-uri property - Optional maybeOverrideUri = restClients.getClient(aClass).overrideUri(); + var overrideUrlKeyName = String.format("quarkus.rest-client.\"%s\".override-uri", aClass.getName()); + Optional maybeOverrideUri = config.getOptionalValue(overrideUrlKeyName, String.class); if (maybeOverrideUri.isPresent()) { uri = URI.create(maybeOverrideUri.get()); }