测试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

路径不能要放错哦

0
1
南柯一梦21
师兄怎么看错误这么厉害,我看半天都不知道问题是在哪里
2020-06-28
共1条回复

qq_fcewdwed_0

提问者

2019-07-07

已解决,SellApplication创建的时候,放到com那一层了,导致无法扫描

0
0

Spring Boot双版本(1.5/2.1) 打造企业级微信点餐系统

从0到1开发中小型企业级Java应用,并学会迭代重构技巧

6410 学习 · 5247 问题

查看课程