我正在开发一个通用服务,在该服务中,我需要声明存储库已自动装配。但是ReactiveCrudRepository收到@NoRepositoryBean批注。
当前代码:
@Service
public abstract class BaseService<T extends Model, ID extends Serializable>
implements CrudService<T, ID> {
private ReactiveCrudRepository<T, ID> repository;
错误:
Could not autowire. No beans of 'ReactiveCrudRepository<T, ID>' type found.