mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
SPR-5682: Initial support for ConfigurationClassApplicationContext
This commit is contained in:
+10
-1
@@ -53,6 +53,15 @@ public class NoSuchBeanDefinitionException extends BeansException {
|
||||
this.beanName = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new NoSuchBeanDefinitionException.
|
||||
* @param type required type of bean
|
||||
*/
|
||||
public NoSuchBeanDefinitionException(Class type) {
|
||||
super("No unique bean of type [" + type.getName() + "] is defined");
|
||||
this.beanType = type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new NoSuchBeanDefinitionException.
|
||||
* @param type required type of bean
|
||||
@@ -62,7 +71,7 @@ public class NoSuchBeanDefinitionException extends BeansException {
|
||||
super("No unique bean of type [" + type.getName() + "] is defined: " + message);
|
||||
this.beanType = type;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create a new NoSuchBeanDefinitionException.
|
||||
* @param type required type of bean
|
||||
|
||||
Reference in New Issue
Block a user