类 ConfigurationPropertiesBindException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.beans.BeansException
- org.springframework.beans.FatalBeanException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.boot.context.properties.ConfigurationPropertiesBindException
- 所有已实现的接口:
Serializable
public class ConfigurationPropertiesBindException extends org.springframework.beans.factory.BeanCreationException
Exception thrown when@ConfigurationProperties
binding fails.- 从以下版本开始:
- 2.0.0
- 另请参阅:
- 序列化表格
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ConfigurationProperties
getAnnotation()
Return the configuration properties annotation that triggered the binding.Class<?>
getBeanType()
Return the bean type that was being bound.从类继承的方法 org.springframework.beans.factory.BeanCreationException
addRelatedCause, contains, getBeanName, getRelatedCauses, getResourceDescription, printStackTrace, printStackTrace, toString
从类继承的方法 org.springframework.core.NestedRuntimeException
getMessage, getMostSpecificCause, getRootCause
从类继承的方法 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace
方法详细资料
getBeanType
public Class<?> getBeanType()
Return the bean type that was being bound.- 返回:
- the bean type
getAnnotation
public ConfigurationProperties getAnnotation()
Return the configuration properties annotation that triggered the binding.- 返回:
- the configuration properties annotation