filmov
tv
Database Access with Spring Data JPA

Показать описание
Correction: in the video I made a mistake putting @Repository on the repository interface -- that annotation is not needed and shouldn't be there. A bean is basically an object managed by the framework, and an interface cannot be used to create an object. Spring Data automatically creates an implementation of the repository interface, and a bean will be created from that implementation and get injected into the controller.