类的使用
org.springframework.boot.context.config.ConfigData.Options
使用ConfigData.Options的程序包
程序包
说明
External configuration support allowing 'application.properties' to be loaded and used
within a Spring Boot application.
-
org.springframework.boot.context.config中ConfigData.Options的使用
修饰符和类型方法说明ConfigData.PropertySourceOptions.get
(PropertySource<?> propertySource) Return the options that should apply for the given property source.ConfigData.getOptions
(PropertySource<?> propertySource) Return theconfig data options
that apply to the given source.static ConfigData.Options
ConfigData.Options.of
(ConfigData.Option... options) Create a new instance with the givenConfigData.Option
values.ConfigData.Options.with
(ConfigData.Option option) Create a newConfigData.Options
instance that contains the options in this set including the given option.ConfigData.Options.without
(ConfigData.Option option) Create a newConfigData.Options
instance that contains the options in this set excluding the given option.修饰符和类型方法说明ConfigData.PropertySourceOptions.always
(ConfigData.Options options) Create a newConfigData.PropertySourceOptions
instance that always returns the same options regardless of the property source.