Annotation Interface ConfigurationProperties


Defines a singleton bean whose property values are resolved from a PropertyResolver.

The PropertyResolver is typically the Micronaut Environment.

The value() of the annotation is used to indicate the prefix where the configuration properties are located. The class can define properties or fields which will have the configuration properties to them at runtime.

Complex nested properties are supported via classes that are public static inner classes and are also annotated with ConfigurationProperties.

Since:
1.0
Author:
Graeme Rocher
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The prefix to use when resolving properties.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    If the properties of this configuration can also be resolved from the CLI a prefix can be specified.