类 ConfigData

java.lang.Object
org.springframework.boot.context.config.ConfigData

public final class ConfigData extends Object
Configuration data that has been loaded from a ConfigDataResource and may ultimately contribute property sources to Spring's Environment.
从以下版本开始:
2.4.0
作者:
Phillip Webb, Madhura Bhave
另请参阅:
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getPropertySources

      public List<PropertySource<?>> getPropertySources()
      Return the configuration data property sources in ascending priority order. If the same key is contained in more than one of the sources, then the later source will win.
      返回:
      the config data property sources
    • getOptions

      public ConfigData.Options getOptions(PropertySource<?> propertySource)
      Return the config data options that apply to the given source.
      参数:
      propertySource - the property source to check
      返回:
      the options that apply
      从以下版本开始:
      2.4.5