
afterRefresh
钩子函数,默认实现为空
 
 
listeners.started

 执行实现SpringApplicationRunListener的started回调
 
通用处理
 
 this.listeners在之前已经通过SPI加载
 
 获取SpringApplicationRunListener的实现类
 
EventPublishingRunListener

推送ApplicationStartedEvent事件
关于事件推送机制,看第七篇文章,这里省略
 
 通过自定义监听器获取回调
 
推送AvailabilityChangeEvent事件

 
callRunners

ApplicationRunner回调

CommandLineRunner回调

listeners.ready

EventPublishingRunListener

推送ApplicationReadyEvent事件

nacos相关
NacosContextRefresher在这里获取ApplicationReadyEvent的回调
 



















