adspace


What does @repository do in spring?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between @controller and @restcontroller in spring?

556


How can you inject java collection in spring?

518


What is lazy class?

490