我正在学习 Spring Boot。在 DAO 接口中,我看到一些文档使用 CrudRepository,一些使用 JpaRepository,其他一些使用 Custom Generic 接口。
在这种情况下,我应该使用 CrudRepository、JpaRepository 还是自定义的。
这是一个界面示例
@Repository
public interface EmployeeRepository extends CrudRepository<Employee, Long> { }