Spring @ComponentScan 無參數的元件掃描路徑是什麼
在 Spring 中,我們使用 @ComponentScan 和 @Configuration 注解來指定希望掃描的 Package。
如果你使用的 @ComponentScan 的話,将會掃描目前檔案夾和所有的子檔案夾。
https://www.cwiki.us/display/SpringBootZH/questions/57939056Spring @ComponentScan 無參數的元件掃描路徑是什麼
在 Spring 中,我們使用 @ComponentScan 和 @Configuration 注解來指定希望掃描的 Package。
如果你使用的 @ComponentScan 的話,将會掃描目前檔案夾和所有的子檔案夾。
https://www.cwiki.us/display/SpringBootZH/questions/57939056