O'Reilly logo

Hands-On Enterprise Java Microservices with Eclipse MicroProfile by Scott Stark, Antoine Sabot-Durand, Pavol Loffay, Jeff Mesnil, Heiko W. Rupp, Cesar Saavedra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required