Last step: publish corresponding event.
clearResourceCaches
initLifecycleProcessor
Initialize lifecycle processor for this context.
从IOC获取LifecycleProcessor设置到applicationContext中,如果从IOC中获取不到会创建DefaultLifecycleProcessor并注册到IOC中
getLifecycleProcessor().onRefresh()
Propagate refresh to lifecycle processor first.
调用DefaultLifecycleProcessor的onRefresh方法
调用DefaultLifecycleProcessor的startBeans方法
执行WebServerStartStopLifecycle的start方法
WebServerStartStopLifecycle
推送ServletWebServerInitializedEvents事件
publishEvent
Publish the final event.
推送ContextRefreshedEvent事件
LiveBeansView.registerApplicationContext
将applicationContext放入LiveBeansView的Set applicationContexts