SpringBoot的自動配置原理

這裏用的springboot  1.5.9.RELEASE   原理 啓動時加載主配置類,開啓自動配置功能@EnableAutoConfiguration   @EnableAutoConfiguration的作用: 利用EnableAutoConfigurationImportSelector給容器導入一些組件   點進去看他類,再點到它的父類 selectImports方法,可看到最關鍵的一句
相關文章
相關標籤/搜索