Q : What is the need for a Component Scan? If you understand component scan, you understand Spring. The first step of defining Spring Beans is by adding the right annotation - @Component or @Service or @Repository. However, Spring does not know about the bean unless it knows where to search for it. This part … Continue reading Spring Interview Questions