接口的使用
org.springframework.boot.context.config.ConfigData.PropertySourceOptions
程序包
说明
External configuration support allowing 'application.properties' to be loaded and used
within a Spring Boot application.
-
org.springframework.boot.context.config中ConfigData.PropertySourceOptions的使用
修饰符和类型字段说明static final ConfigData.PropertySourceOptionsConfigData.PropertySourceOptions.ALWAYS_NONEConfigData.PropertySourceOptionsinstance that always returnsConfigData.Options.NONE.修饰符和类型方法说明ConfigData.PropertySourceOptions.always(ConfigData.Option... options) Create a newConfigData.PropertySourceOptionsinstance that always returns the same options regardless of the property source.ConfigData.PropertySourceOptions.always(ConfigData.Options options) Create a newConfigData.PropertySourceOptionsinstance that always returns the same options regardless of the property source.限定符构造器说明ConfigData(Collection<? extends PropertySource<?>> propertySources, ConfigData.PropertySourceOptions propertySourceOptions) Create a newConfigDatainstance with specific property source options.