, 2.

"@Repository" is used as a stereotype for the presentation layer, while "@Controller" is used as a stereotype for the persistence layer.


, 3.

"@Repository" is used as a stereotype for the service layer, while "@Controller" is used as a generic stereotype for any Spring-managed component.


, 4.

"@Controller" is used as a stereotype for the service layer, while "@Repository" is used as a generic stereotype for any Spring-managed component.


">
MCQs > IT & Programming > Spring MVC >

What is the difference between the @Repository and the @Controller annotations in Spring?

Spring MVC MCQs

What is the difference between the @Repository and the @Controller annotations in Spring?

Answer

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

Spring MVC Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Spring MVC Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it