Chapter 3

  1. The default sources of configuration properties are environment variables, Java system properties, and the META-INF/microprofile-config.properties file.
  2. You can provide a custom ConfigSource implementation that maps property names to values in the custom source.
  3. Strings are not the only supported types, as MP-Config supports type conversion via a pluggable SPI, and provides several default conversions by default.
  4. You do not need to provide a value for an injected property if you have given a defaultValue, or have injected the property as an Optional<?> value.
  5. Complex property types can be handled using a custom Converter<?> implementation that takes a string and returns the complex type.
  6. When an annotation is specified at the class ...

Get Hands-On Enterprise Java Microservices with Eclipse MicroProfile now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.