What does @repository do in spring?



What does @repository do in spring?..

Answer / Himanshu Dubey

The @Repository annotation is used to define a Spring Data Repository, which is an interface that extends the CrudRepository interface and provides methods for common database operations such as create, read, update, and delete (CRUD) operations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

Can annotation extend another annotation?

1 Answers  


Name some of the design patterns used in spring framework?

1 Answers  


Does spring boot need web xml? : Spring Boot

1 Answers  


What is @qualifier in spring?

1 Answers  


State the differences between applicationcontext and beanfactory in spring?

1 Answers  


Why is spring so important?

1 Answers  


What is difference between spring boot and spring framework? : Spring Boot

1 Answers  


What is @controller in spring?

1 Answers  


What is a spring framework?

1 Answers  


What is the difference between autowiring and dependency injection?

1 Answers  


Why is loose coupling important?

1 Answers  


What is the typical bean life cycle in spring bean factory container?

1 Answers  


Categories