NoUniqueBeanDefinitionException: No qualifying bean of type available

@Transactional(readOnly = true)
public class BaseServiceImpl implements IBaseService {
    @Autowired
    private IBaseDao baseDao;//一定要加泛型 不然会报标题错误

    @Override
    @Transactional(readOnly = false)//可写
    public void save(T t) {
        baseDao.save(t);
    }
    @Transactional(readOnly = false)//可写
    @Override
    public void update(T t) {

        baseDao.update(t);
    }
    @Transactional(readOnly = false)//可写
    @Override
    public void delete(Long id) {
        baseDao.delete(id);
    }

    @Override
    public T findOne(Long id) {
        return baseDao.findOne(id);
    }

    @Override
    public List findAll() {
        return baseDao.findAll();
    }

    @Override
    public Page findByPage(Integer pageNo, Integer pageSize) {
        //查询出列表
        List list= baseDao.findByPage(pageNo,pageSize);
        //查询出总条数
        Long total=baseDao.findRowCount();
        return new Page(total,list,pageNo,pageSize);
    }

    @Override
    public Long findRowCount() {
        return baseDao.findRowCount();
    }
}

你可能感兴趣的:(NoUniqueBeanDefinitionException: No qualifying bean of type available)