类 BeanCreationNotAllowedException
- 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.beans.factory.BeanCreationNotAllowedException
- 所有已实现的接口:
Serializable
public class BeanCreationNotAllowedException extends BeanCreationException
Exception thrown in case of a bean being requested despite bean creation currently not being allowed (for example, during the shutdown phase of a bean factory).- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 BeanCreationNotAllowedException(String beanName, String msg)
Create a new BeanCreationNotAllowedException.
方法概要
从类继承的方法 org.springframework.beans.factory.BeanCreationException
addRelatedCause, contains, getBeanName, getRelatedCauses, getResourceDescription, printStackTrace, printStackTrace, toString
从类继承的方法 org.springframework.beans.BeansException
equals, hashCode
从类继承的方法 org.springframework.core.NestedRuntimeException
getMessage, getMostSpecificCause, getRootCause
从类继承的方法 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace
构造器详细资料
BeanCreationNotAllowedException
public BeanCreationNotAllowedException(String beanName, String msg)
Create a new BeanCreationNotAllowedException.- 参数:
beanName
- the name of the bean requestedmsg
- the detail message