其中有两个类是spring-数据存储库和一个以存储库的类型作为泛型参数的泛型服务,例如:interface ForumRepository : CrudRepository}abstract class GenericKotlinService<T>(val repository: CrudRepository<Any,super(repository)
open fun findByName(name: String) = repository.fi
mismatch: The type UserService is not a valid substitute for the bounded parameter <S extends Service<M,CrudRepositoryapp;
Service.java
public abstract class Service <M exten
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.data.repository.CrudRepository@Component protected CrudRepository<T,KEYExtractor<Account, L