AbstractApplicationContext logs initialization exception before trying to cancel refresh attempt
Issue: SPR-12010
This commit is contained in:
@@ -484,6 +484,8 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
|
|||||||
}
|
}
|
||||||
|
|
||||||
catch (BeansException ex) {
|
catch (BeansException ex) {
|
||||||
|
logger.warn("Exception encountered during context initialization - cancelling refresh attempt", ex);
|
||||||
|
|
||||||
// Destroy already created singletons to avoid dangling resources.
|
// Destroy already created singletons to avoid dangling resources.
|
||||||
destroyBeans();
|
destroyBeans();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user