Annotation Interface ConfigProperty


@Retention(RUNTIME) @Target({FIELD,PARAMETER}) public @interface ConfigProperty
Customizes field-to-YAML binding.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If true, field is read from config but not written to generated defaults.
    Override the YAML path for this field.
  • Element Details

    • value

      String value
      Override the YAML path for this field. Example: "db.host" instead of derived "database_host"
      Returns:
      the YAML path
      Default:
      ""
    • hidden

      boolean hidden
      If true, field is read from config but not written to generated defaults.
      Returns:
      true if hidden
      Default:
      false