|
|
|
|
@ -300,7 +300,13 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
@@ -300,7 +300,13 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
|
|
|
|
|
"Circular depends-on relationship between '" + beanName + "' and '" + dep + "'"); |
|
|
|
|
} |
|
|
|
|
registerDependentBean(dep, beanName); |
|
|
|
|
getBean(dep); |
|
|
|
|
try { |
|
|
|
|
getBean(dep); |
|
|
|
|
} |
|
|
|
|
catch (NoSuchBeanDefinitionException ex) { |
|
|
|
|
throw new BeanCreationException(mbd.getResourceDescription(), beanName, |
|
|
|
|
"'" + beanName + "' depends on missing bean '" + dep + "'", ex); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|