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