类的使用
org.springframework.boot.context.config.ConfigDataResource
使用ConfigDataResource的程序包
程序包
说明
External configuration support allowing 'application.properties' to be loaded and used
within a Spring Boot application.
-
org.springframework.boot.context.config中ConfigDataResource的使用
修饰符和类型接口说明interface
ConfigDataLoader<R extends ConfigDataResource>
Strategy class that can be used to loadConfigData
for a givenConfigDataResource
.interface
ConfigDataLocationResolver<R extends ConfigDataResource>
修饰符和类型类说明class
ConfigDataResource
backed by a config tree directory.class
ConfigDataResource
backed by aResource
.修饰符和类型方法说明InactiveConfigDataAccessException.getLocation()
Return theConfigDataResource
of the property source ornull
if the source was not loaded fromConfigData
.InvalidConfigDataPropertyException.getLocation()
Return theConfigDataResource
of the invalid property ornull
if the source was not loaded fromConfigData
.ConfigDataLocationResolverContext.getParent()
Provides access to the parentConfigDataResource
that triggered the resolve ornull
if there is no available parent.ConfigDataResourceNotFoundException.getResource()
Return the resource that could not be found.修饰符和类型方法说明default void
ConfigDataEnvironmentUpdateListener.onPropertySourceAdded
(PropertySource<?> propertySource, ConfigDataLocation location, ConfigDataResource resource) Called when a newPropertySource
is added to theEnvironment
.static void
ConfigDataResourceNotFoundException.throwIfDoesNotExist
(ConfigDataResource resource, File fileToCheck) Throw aConfigDataNotFoundException
if the specifiedFile
does not exist.static void
ConfigDataResourceNotFoundException.throwIfDoesNotExist
(ConfigDataResource resource, Path pathToCheck) Throw aConfigDataNotFoundException
if the specifiedPath
does not exist.static void
ConfigDataResourceNotFoundException.throwIfDoesNotExist
(ConfigDataResource resource, Resource resourceToCheck) Throw aConfigDataNotFoundException
if the specifiedResource
does not exist.限定符构造器说明Create a newConfigDataResourceNotFoundException
instance.ConfigDataResourceNotFoundException
(ConfigDataResource resource, Throwable cause) Create a newConfigDataResourceNotFoundException
instance.