类 NoSuchBeanDefinitionException

    • 构造器详细资料

      • NoSuchBeanDefinitionException

        public NoSuchBeanDefinitionException​(String name,
                                             String message)
        Create a new NoSuchBeanDefinitionException.
        参数:
        name - the name of the missing bean
        message - detailed message describing the problem
      • NoSuchBeanDefinitionException

        public NoSuchBeanDefinitionException​(Class<?> type)
        Create a new NoSuchBeanDefinitionException.
        参数:
        type - required type of the missing bean
      • NoSuchBeanDefinitionException

        public NoSuchBeanDefinitionException​(Class<?> type,
                                             String message)
        Create a new NoSuchBeanDefinitionException.
        参数:
        type - required type of the missing bean
        message - detailed message describing the problem
      • NoSuchBeanDefinitionException

        public NoSuchBeanDefinitionException​(ResolvableType type)
        Create a new NoSuchBeanDefinitionException.
        参数:
        type - full type declaration of the missing bean
        从以下版本开始:
        4.3.4
      • NoSuchBeanDefinitionException

        public NoSuchBeanDefinitionException​(ResolvableType type,
                                             String message)
        Create a new NoSuchBeanDefinitionException.
        参数:
        type - full type declaration of the missing bean
        message - detailed message describing the problem
        从以下版本开始:
        4.3.4
    • 方法详细资料

      • getBeanName

        public String getBeanName()
        Return the name of the missing bean, if it was a lookup by name that failed.
      • getBeanType

        public Class<?> getBeanType()
        Return the required type of the missing bean, if it was a lookup by type that failed.