类 InactiveConfigDataAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.boot.context.config.ConfigDataException
org.springframework.boot.context.config.InactiveConfigDataAccessException
- 所有已实现的接口:
Serializable
Exception thrown when an attempt is made to resolve a property against an inactive
ConfigData property source. Used to ensure that a user doesn't accidentally
attempt to specify a properties that can never be resolved.- 从以下版本开始:
- 2.4.0
- 作者:
- Phillip Webb, Madhura Bhave
- 另请参阅:
-
方法概要
修饰符和类型方法说明Return theConfigDataResourceof the property source ornullif the source was not loaded fromConfigData.Return the origin or the property ornull.Return the name of the property.Return the inactive property source that contained the property.
-
方法详细资料
-
getPropertySource
Return the inactive property source that contained the property.- 返回:
- the property source
-
getLocation
Return theConfigDataResourceof the property source ornullif the source was not loaded fromConfigData.- 返回:
- the config data location or
null
-
getPropertyName
Return the name of the property.- 返回:
- the property name
-
getOrigin
Return the origin or the property ornull.- 返回:
- the property origin
-