Spring / Spring MVC Interview questions
What are the Spring MVC Annotations?
The @Component annotation marks a java class as a bean so the component-scanning mechanism of spring loads it into the application context.
The @Repository annotation is a specialization of the @Component with similar behavior and functionality. In addition to importing the DAOs into the DI container, it also makes the unchecked exceptions (thrown from DAO methods) eligible for translation into Spring DataAccessException.
More Related questions...