之前的章节中讲过Spring Boot2.0版本源码(九):Spring Boot的Servlet容器Tomcat工厂类的加载,这个章节中有讲解@EnableAutoConfiguration
注解实现对starter的自动注入的过程,会在在AutoConfigurationImportSelector
类的getAutoConfigurationEntry()
方法内执行解析@EnableAutoConfiguration
注解的过程中注入的bean
运行到getCandidateConfigurations()
方法,会去使用SpringFactoriesLoader读取spring.factories文件,看到已经读取到了我们自定义的starter
Spring Boot2.0版本源码(十):Spring Boot的Start的解析之starter原理解析
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Springboot自动配置源码阅读
小雨的光
2020-07-06 03:18:32
Springboot源码解析:一、SpringApplication的实例化
balabala__
2020-07-04 23:33:26
走心Springboot源码解析: 四、refresh方法
balabala__
2020-07-04 23:33:25
SpringBoot源码系列:Environment机制深入分析(二)
猿代马
2020-06-29 20:47:55
Spring Boot2.0版本源码(一):Spring Boot启动整体流程预览
LUK流
2020-06-19 18:50:28
Error resolving template [/common/head], template might not exist or might not be accessible by any
小风的博客
2020-06-13 03:51:34
springboot 源码解析(4)打印的banner原理以及如何修改
小风的博客
2020-06-13 03:51:34
springboot+shiro+layui的时候icon不显示
小风的博客
2020-06-13 03:51:24
mybatis plus order by 生成的sql报错
如果用的是 添加了order以後發現 如果沒有查詢條件的情況下 拼接了where 把where去掉就好了 SELECT * FROM user ${ew.sqlSegment}
小风的博客
2020-06-13 03:51:24
springboot 源码解析(4)createApplicationContext的创建分析
小风的博客
2020-06-13 03:51:24
Spring Boot2.0版本源码(十):Spring Boot的Start的解析之自定义starter
LUK流
2020-05-02 21:08:41
Spring Boot2.0版本源码(十):Spring Boot的Start的解析之@Conditional注解
LUK流
2020-05-02 21:08:41
springboot源码自动装配解析学习(标题一)
随风飘。
2020-04-30 07:11:58
Spring Boot2.0版本源码(九):Spring Boot的Servlet容器个性化参数配置原理
LUK流
2020-04-29 12:40:21
Spring Boot2.0版本源码(九):Spring Boot的Servlet容器Tomcat工厂类的加载
LUK流
2020-04-29 12:40:21