枚举类的使用
org.springframework.boot.context.config.ConfigData.Option
使用ConfigData.Option的程序包
程序包
说明
External configuration support allowing 'application.properties' to be loaded and used
within a Spring Boot application.
-
org.springframework.boot.context.config中ConfigData.Option的使用
修饰符和类型方法说明static ConfigData.Option返回带有指定名称的该类的枚举常量。static ConfigData.Option[]ConfigData.Option.values()返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同修饰符和类型方法说明ConfigData.PropertySourceOptions.always(ConfigData.Option... options) Create a newConfigData.PropertySourceOptionsinstance that always returns the same options regardless of the property source.booleanConfigData.Options.contains(ConfigData.Option option) Returns if the given option is contained in this set.static ConfigData.OptionsConfigData.Options.of(ConfigData.Option... options) Create a new instance with the givenConfigData.Optionvalues.ConfigData.Options.with(ConfigData.Option option) Create a newConfigData.Optionsinstance that contains the options in this set including the given option.ConfigData.Options.without(ConfigData.Option option) Create a newConfigData.Optionsinstance that contains the options in this set excluding the given option.限定符构造器说明ConfigData(Collection<? extends PropertySource<?>> propertySources, ConfigData.Option... options) Create a newConfigDatainstance with the same options applied to each source.