diff --git a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientCDIDelegateBuilder.java b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientCDIDelegateBuilder.java index a74a6b9249a1e..9ee52501eaf78 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientCDIDelegateBuilder.java +++ b/extensions/resteasy-reactive/rest-client-reactive/runtime/src/main/java/io/quarkus/rest/client/reactive/runtime/RestClientCDIDelegateBuilder.java @@ -30,9 +30,8 @@ public class RestClientCDIDelegateBuilder { - private static final String MP_REST = "mp-rest"; - private static final String REST_URL_FORMAT = "%s/" + MP_REST + "/url"; - private static final String REST_URI_FORMAT = "%s/" + MP_REST + "/uri"; + private static final String REST_URL_FORMAT = "quarkus.rest-client.%s.url"; + private static final String REST_URI_FORMAT = "quarkus.rest-client.%s.uri"; private final Class jaxrsInterface; private final String baseUriFromAnnotation; @@ -305,7 +304,7 @@ private void configureBaseUrl(RestClientBuilder builder) { } if (((baseUriFromAnnotation == null) || baseUriFromAnnotation.isEmpty()) && propertyOptional.isEmpty()) { - String propertyPrefix = configKey != null ? configKey : jaxrsInterface.getName(); + String propertyPrefix = configKey != null ? configKey : "\"" + jaxrsInterface.getName() + "\""; throw new IllegalArgumentException( String.format( "Unable to determine the proper baseUrl/baseUri. " +