component scanning

Spring searching the application's packages at startup for classes marked with annotations such as @Service and registering them as beans.

In more detail

@SpringBootApplication turns on scanning from its own package downward, so keep the application class at the root of your packages. Classes outside the scanned packages are silently ignored, a common cause of a missing bean at startup.

Related terms

Taught in

References