org.springframework.beans.factory

## 类 UnsatisfiedDependencyException

- 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.UnsatisfiedDependencyException

- 所有已实现的接口:
    Serializable

      public class UnsatisfiedDependencyException
      extends BeanCreationException

  Exception thrown when a bean depends on other beans or simple properties that were not specified in the bean factory definition, although dependency checking was enabled.
  从以下版本开始:
    03.09.2003
  作者:
    Rod Johnson, Juergen Hoeller
  另请参阅:
    序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `UnsatisfiedDependencyException(String resourceDescription, String beanName, InjectionPoint injectionPoint, BeansException ex)` Create a new UnsatisfiedDependencyException.
    `UnsatisfiedDependencyException(String resourceDescription, String beanName, InjectionPoint injectionPoint, String msg)` Create a new UnsatisfiedDependencyException.
    `UnsatisfiedDependencyException(String resourceDescription, String beanName, String propertyName, BeansException ex)` Create a new UnsatisfiedDependencyException.
    `UnsatisfiedDependencyException(String resourceDescription, String beanName, String propertyName, String msg)` Create a new UnsatisfiedDependencyException.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `InjectionPoint` | `getInjectionPoint()` Return the injection point (field or method/constructor parameter), if known.

    - ### 从类继承的方法 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`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### UnsatisfiedDependencyException

          public UnsatisfiedDependencyException(@Nullable
                                                String resourceDescription,
                                                @Nullable
                                                String beanName,
                                                String propertyName,
                                                String msg)

      Create a new UnsatisfiedDependencyException.
      参数:
        `resourceDescription` - description of the resource that the bean definition came from
        `beanName` - the name of the bean requested
        `propertyName` - the name of the bean property that couldn't be satisfied
        `msg` - the detail message

    - #### UnsatisfiedDependencyException

          public UnsatisfiedDependencyException(@Nullable
                                                String resourceDescription,
                                                @Nullable
                                                String beanName,
                                                String propertyName,
                                                BeansException ex)

      Create a new UnsatisfiedDependencyException.
      参数:
        `resourceDescription` - description of the resource that the bean definition came from
        `beanName` - the name of the bean requested
        `propertyName` - the name of the bean property that couldn't be satisfied
        `ex` - the bean creation exception that indicated the unsatisfied dependency

    - #### UnsatisfiedDependencyException

          public UnsatisfiedDependencyException(@Nullable
                                                String resourceDescription,
                                                @Nullable
                                                String beanName,
                                                @Nullable
                                                InjectionPoint injectionPoint,
                                                String msg)

      Create a new UnsatisfiedDependencyException.
      参数:
        `resourceDescription` - description of the resource that the bean definition came from
        `beanName` - the name of the bean requested
        `injectionPoint` - the injection point (field or method/constructor parameter)
        `msg` - the detail message
      从以下版本开始:
        4.3

    - #### UnsatisfiedDependencyException

          public UnsatisfiedDependencyException(@Nullable
                                                String resourceDescription,
                                                @Nullable
                                                String beanName,
                                                @Nullable
                                                InjectionPoint injectionPoint,
                                                BeansException ex)

      Create a new UnsatisfiedDependencyException.
      参数:
        `resourceDescription` - description of the resource that the bean definition came from
        `beanName` - the name of the bean requested
        `injectionPoint` - the injection point (field or method/constructor parameter)
        `ex` - the bean creation exception that indicated the unsatisfied dependency
      从以下版本开始:
        4.3

  - ### 方法详细资料

    - #### getInjectionPoint

          @Nullable
          public InjectionPoint getInjectionPoint()

      Return the injection point (field or method/constructor parameter), if known.
      从以下版本开始:
        4.3