@ComponentScan 无参数

Spring @ComponentScan 无参数的组件扫描路径是什么


在 Spring 中,我们使用 @ComponentScan 和 @Configuration 注解来指定希望扫描的 Package。

如果你使用的 @ComponentScan 的话,将会扫描当前文件夹和所有的子文件夹。

https://www.cwiki.us/display/SpringBootZH/questions/57939056

原文地址:https://www.cnblogs.com/huyuchengus/p/12702776.html