类 BeanCurrentlyInCreationException
- 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.BeanCurrentlyInCreationException
- 所有已实现的接口:
Serializable
public class BeanCurrentlyInCreationException extends BeanCreationException
Exception thrown in case of a reference to a bean that's currently in creation. Typically happens when constructor autowiring matches the currently constructed bean.- 从以下版本开始:
- 1.1
- 作者:
- Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 BeanCurrentlyInCreationException(String beanName)
Create a new BeanCurrentlyInCreationException, with a default error message that indicates a circular reference.BeanCurrentlyInCreationException(String beanName, String msg)
Create a new BeanCurrentlyInCreationException.
方法概要
从类继承的方法 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
构造器详细资料
BeanCurrentlyInCreationException
public BeanCurrentlyInCreationException(String beanName)
Create a new BeanCurrentlyInCreationException, with a default error message that indicates a circular reference.- 参数:
beanName
- the name of the bean requested
BeanCurrentlyInCreationException
public BeanCurrentlyInCreationException(String beanName, String msg)
Create a new BeanCurrentlyInCreationException.- 参数:
beanName
- the name of the bean requestedmsg
- the detail message