August 2019
Intermediate to advanced
256 pages
6h 43m
English
Since the default MP Config property names for a CDI interface can be quite long due to the inclusion of the interface package name, the MP-RC specification supports a way to simplify the property name prefix using the configKey attribute of the @RegisterRestClient annotation:
@Path("/api/json")@RegisterRestClient(baseUri = WorldClockApi.BASE_URL, configKey = "worldClock")public interface WorldClockApi { static final String BASE_URL = "http://worldclockapi.com/api/json";...}
With the worldClock configKey, the previous list of property names simplifies to the following:
Read now
Unlock full access