Closed pcyuen98 closed 3 years ago
To do the dependency injection the packages must be scanned for necessary beans.
scanBasePackages allows us to provide a wildcard to our package name so that any sub-packages will also be scanned
https://codetinkering.com/spring-boot-package-scanning-configuration/
Base packages to scan for annotated components.
scanBasePackageClasses Type-safe alternative to scanBasePackages() for specifying the packages to scan for annotated components.
Explain the usages of scanBasePackages
Provide class file where does it implemented
Provide reference link