Why Spring Data JPA Repositories Must Be Interfaces, Not Classes
· 10 min read
Trying to create a Spring Data repository by extending JpaRepository with a class instead of an interface? It won't work. Here's why Spring Data JPA requires interfaces and what happens behind the scenes.
