一.常见的两个扩展点 1.ApplicationContextInitializer 1.1.作用实现 作用:接口实在Spring容器执行refresh之前的一个回调. Callback interface for initializing a Spring {@link ConfigurableApplicationContext} 实现: /* * Copyright 2002-2011 the original author or authors. * * Licensed under t…
承接前文监听器对bootstrapContext创建的引导,笔者了解到其主要入口类为BootstrapImportSelectorConfiguration.本文将基于此类进行简单的分析 BootstrapImportSelectorConfiguration 简单的配置类,看下源码 @Configuration @Import(BootstrapImportSelector.class) public class BootstrapImportSelectorConfiguration { }…