类 CannotLoadBeanClassException
- 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.CannotLoadBeanClassException
- 所有已实现的接口:
Serializable
public class CannotLoadBeanClassException extends FatalBeanException
Exception thrown when the BeanFactory cannot load the specified class of a given bean.- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 CannotLoadBeanClassException(String resourceDescription, String beanName, String beanClassName, ClassNotFoundException cause)
Create a new CannotLoadBeanClassException.CannotLoadBeanClassException(String resourceDescription, String beanName, String beanClassName, LinkageError cause)
Create a new CannotLoadBeanClassException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getBeanClassName()
Return the name of the class we were trying to load.String
getBeanName()
Return the name of the bean requested.String
getResourceDescription()
Return the description of the resource that the bean definition came from.从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
CannotLoadBeanClassException
public CannotLoadBeanClassException(@Nullable String resourceDescription, String beanName, @Nullable String beanClassName, ClassNotFoundException cause)
Create a new CannotLoadBeanClassException.- 参数:
resourceDescription
- description of the resource that the bean definition came frombeanName
- the name of the bean requestedbeanClassName
- the name of the bean classcause
- the root cause
CannotLoadBeanClassException
public CannotLoadBeanClassException(@Nullable String resourceDescription, String beanName, @Nullable String beanClassName, LinkageError cause)
Create a new CannotLoadBeanClassException.- 参数:
resourceDescription
- description of the resource that the bean definition came frombeanName
- the name of the bean requestedbeanClassName
- the name of the bean classcause
- the root cause
方法详细资料
getResourceDescription
@Nullable public String getResourceDescription()
Return the description of the resource that the bean definition came from.
getBeanName
public String getBeanName()
Return the name of the bean requested.
getBeanClassName
@Nullable public String getBeanClassName()
Return the name of the class we were trying to load.