Component scanning
Spring searching the main class's package and every package below it for classes marked @Component and its relatives. A class in any other package is never found.
Spring searching the main class's package and every package below it for classes marked @Component and its relatives. A class in any other package is never found.