SpringApplication启动流程
1.SpringApplication的构造过程
推断应用类型(是web,不是web,SpringBoot2.0支持响应式编程)
加载初始化构造器ApplicationContextInitializer ([ɪ'nɪʃəlaɪzə])
创建应用监听器
设置应用main()方法所在的类
2.SpringApplication的run()方法
Headless模式设置
加载SpringApplicationRunListeners监听器
封装ApplicationArguments对象
配置环境模块
根据环境信息配置要忽略的bean信息
Banner配置
创建ApplicationContext应用上下文
加载SpringBootExceptionReporter
设置ApplicationContext基本属性配置
更新应用上下文
查找是否注册有CommandLineRunner/ApplicationRunner