淺談@SpringBootApplication註解的理解

sprigboot啓動類: 一.作用 @SpringBootApplication 是一個組合註釋,用於快捷配置啓動類 二.拆解 此註解相當於@SpringBootConfiguration和EnableAutoConfiguration,@ComponentScan的組合註解 三.解析 [email protected] 說明這是一個配置文件類,它會被@ComponentScan掃描到。進入@S
相關文章
相關標籤/搜索