"@Repository" is used as a stereotype for the presentation layer, while "@Controller" is used as a stereotype for the persistence layer.
"@Repository" is used as a stereotype for the service layer, while "@Controller" is used as a generic stereotype for any Spring-managed component.
"@Controller" is used as a stereotype for the service layer, while "@Repository" is used as a generic stereotype for any Spring-managed component.
What is the difference between the @Repository and the @Controller annotations in Spring?
Correct Answer:
"@Repository" is used as a stereotype for the persistence layer, while "@Controller" is used as a stereotype for the presentation layer.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Spring MVC MCQ Questions