测试ProductCategoryTest,报错,求大神指点
来源:4-1 买家类目-dao(上)
qq_fcewdwed_0
2019-07-06
Error creating bean with name ‘com.imooc.repository.ProductCategoryRepositoryTest’: Unsatisfied dependency expressed through field ‘repository’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.imooc.repository.ProductCategoryRepository’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
写回答
2回答
-
廖师兄
2019-07-08
路径不能要放错哦
012020-06-28 -
qq_fcewdwed_0
提问者
2019-07-07
已解决,SellApplication创建的时候,放到com那一层了,导致无法扫描
00
相似问题