December 2019
Intermediate to advanced
314 pages
6h 51m
English
To discuss configuration converters, let's take this simple configuration example:
year=2019isUser=true
Here, it's perfectly fine to inject the preceding properties into our code:
@ConfigProperty(name = "year", defaultValue = "2020")Integer year;@ConfigProperty(name = "isUser", defaultValue = "false")Boolean isUser;
Under the hood, the MicroProfile Config API provides a type-safe conversion for values that are not just plain strings.
This happens by providing converters in the configuration model. Out of the box, some converters are already provided by the MicroProfile ...
Read now
Unlock full access