Unsatisfied dependency expressed through field 'carService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.itheima.service.ICarService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
问题出现在了自己的Service和Dao两个地方都有implement ICarService中ICarService这个类,导入按下table之前看清楚路径,引以为戒我浪费了半小时查一下才发现的。。。。
@Service
public class CarServiceImpl extends ServiceImpl<CarDao, Car> implements ICarService {
}