What is the use of @repository in spring?



What is the use of @repository in spring?..

Answer / Krishan Kumar Kamthan

@Repository is a Spring Data JPA annotation used to mark a Java class as a repository, which is responsible for storing and retrieving data from a database.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What is the benefit of factory pattern?

1 Answers  


What is cross cutting in spring?

1 Answers  


What is sqlprovider?

1 Answers  


What is joinpoint?

1 Answers  


What is @configuration in spring?

1 Answers  


Why angular service is singleton?

1 Answers  


What are the minimum configurations needed to create a spring mvc application?

1 Answers  


What is difference between @component and @controller?

1 Answers  


What are the core features of the spring framework?

1 Answers  


What is spring boot microservices? : Spring Boot

1 Answers  


What is cdi in spring?

1 Answers  


What is spring boot and spring mvc? : Spring Boot

1 Answers  


Categories