【SpringBoot】源碼學習筆記(三)

【流程圖】

通過源碼斷點調試後,對整個SpringBoot的啓動流程有了一個大概的瞭解,畫出自己理解的流程圖,如下

【感受】

SpringBoot確實爲我們提供了很多便利,比如官方說的:

1、Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)  //直接嵌入Tomcat、Jetty或Undertow

2、Provide opinionated 'starter' dependencies to simplify your build configuration  //提供“starter”依賴項以簡化構建配置

3、Automatically configure Spring and 3rd party libraries whenever possible  //儘可能自動配置Spring和第三方庫

4、Provide production-ready features such as metrics, health checks, and externalized configuration  //提供生產就緒功能,如度量、運行狀況檢查和外部化配置

5、Absolutely no code generation and no requirement for XML configuration  //不需要XML配置

這裏初步感受到了1、3、5的特點和它實現的基本流程,至於2、4描述的特點, 則放在後續進一步學習。加油,奧利給!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章