- Hands-On Enterprise Java Microservices with Eclipse MicroProfile
- Cesar Saavedra Heiko W. Rupp Jeff Mesnil Pavol Loffay Antoine Sabot Durand Scott Stark
- 51字
- 2021-06-24 12:56:21
Reading configuration from the MicroProfile Config API
The MicroProfile Config specification defines two objects to read the value of configuration parameters:
- The Config object to programmatically access the configuration values
- The @ConfigProperty annotation to inject the configuration values using Contexts and Dependency Injection (CDI)
Let's discuss them in detail.