This super class DAO:
public class CrudDAO{
}
This child class:
@Repository
public class JnsTimeDao extends CrudDAO {
}
@Repository
public class BatchDAO extends CrudDAO {
}
this super service class
@Transactional(readOnly = true)
public abstract class CrudService<D extends CrudDAO> {
@Autowired
protected D dao;
}
startup error:
org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.gp.dao.CrudDAO] is defined: expected single matching bean but found 2: batchDAO,jnsTimeDao