Class 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
- All Implemented Interfaces:
Serializable
public class ConfigurationPropertiesBindException extends org.springframework.beans.factory.BeanCreationException
Exception thrown when@ConfigurationProperties
binding fails.- Since:
- 2.0.0
- See Also:
- Serialized Form
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationProperties
getAnnotation()
Return the configuration properties annotation that triggered the binding.Class<?>
getBeanType()
Return the bean type that was being bound.Methods inherited from class org.springframework.beans.factory.BeanCreationException
addRelatedCause, contains, getBeanName, getRelatedCauses, getResourceDescription, printStackTrace, printStackTrace, toString
Methods inherited from class org.springframework.core.NestedRuntimeException
getMessage, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace
Method Detail
getBeanType
public Class<?> getBeanType()
Return the bean type that was being bound.- Returns:
- the bean type
getAnnotation
public ConfigurationProperties getAnnotation()
Return the configuration properties annotation that triggered the binding.- Returns:
- the configuration properties annotation