org.springframework.boot.context.properties.source

Class ConfigurationPropertyName

  • java.lang.Object
    • org.springframework.boot.context.properties.source.ConfigurationPropertyName
  • All Implemented Interfaces:
    Comparable<ConfigurationPropertyName>


    public final class ConfigurationPropertyName
    extends Object
    implements Comparable<ConfigurationPropertyName>
    A configuration property name composed of elements separated by dots. User created names may contain the characters "a-z" "0-9") and "-", they must be lower-case and must start with an alpha-numeric character. The "-" is used purely for formatting, i.e. "foo-bar" and "foobar" are considered equivalent.

    The "[" and "]" characters may be used to indicate an associative index(i.e. a Map key or a Collection index. Indexes names are not restricted and are considered case-sensitive.

    Here are some typical examples:

    • spring.main.banner-mode
    • server.hosts[0].name
    • log[org.springboot].level

    Since:
    2.0.0
    Author:
    Phillip Webb, Madhura Bhave
    See Also:
    of(CharSequence), ConfigurationPropertySource

Copyright © 2020 Pivotal Software, Inc.. All rights reserved.