springboot启动流程源码
从run方法开始
跟进new SpringApplication构造方法里做了很多事
this.mainApplicationClass = deduceMainApplicationClass()反射Class主启动类
然后返回再看run方法 new SpringApplication(primarySources).run(args);
在refreshContext(context);在跟进去就是spring源码了,ioc,aop流程由spring完成
-----springboot自动装配是在
postProcessBeanFactory(beanFactory);
invokeBeanFactoryPostProcessors(beanFactory);这两步完成的
继续在refresh方法里调用onRefresh()
然后就看到Tomcat tomcat = new Tomcat()了
好了先这样吧 (我只看到这种深度)