美文网首页
springBoot 启动过程

springBoot 启动过程

作者: 释_远 | 来源:发表于2017-09-22 10:25 被阅读0次

1.从SpringApplication中的run方法调用

2.调用SpringApplication中的refreshContext

3.调用SpringApplication中的refresh

4.此处会找到springBoot具体的ConfigurableWebApplicationContext的子类并且是子类实现refresh方法 EmbeddedWebApplicationContext实现refresh

5.EmbeddedWebApplicationContext中的super.refresh 会调用AbstractApplicationContext 中的refresh,看到这里就是我们熟悉的IOC注入了,当一步一步

相关文章

网友评论

      本文标题:springBoot 启动过程

      本文链接:https://www.haomeiwen.com/subject/ravxextx.html