之前的章節中講過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