Google News
logo
Java Springs - Interview Questions
How does component scan work in Spring
If we have a base package com.freetimelearn.app, Spring will recursively scan for components starting from the base package through all directories until the required component is found.
 
A package com.freetimelearn.app.demo is a sub package because of the naming structure, just like folders on a file system.

Advertisement