Spring Component Scanning | Baeldung
www.baeldung.com › spring-component-scanningMar 17, 2022 · Only the location of the configuration class matters, as component scanning starts from its package by default. Finally, note that in our example, @ComponentScan is equivalent to: @ComponentScan (basePackages = "com.baeldung.componentscan.springapp") The basePackages argument is a package or an array of packages for scanning. 2.2.