Quarkus & Microprofile : Is there a better way to use a property from application.properties into @ClientHeaderParam?
问题 I'm trying to build a simple app that calls an API with quarkus-rest-client . I have to inject an API Key as a header which is the same for all resources of the API. So I would like to put the value of this API Key (that depends on the environment dev/qa/prod ) in the application.properties file located in src/main/resources . I tried different ways to achieve this: Use directly com.acme.Configuration.getKey into @ClientHeaderParam value property Create a StoresClientHeadersFactory class