老师,报错500
来源:2-9 验证Sevice
慕UI0539832
2018-05-13
运行Controll文件提示Error creating bean with name 'areaServiceImpl': Unsatisfied dependency expressed through field 'areaDao'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.owner.store.dao.AreaDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
写回答
2回答
-
慕UI0539832
提问者
2018-05-13
老师,好开心啊自己解决了,原因是spring-service.xml文件在spring-dao.xml之前,难以置信
042019-02-12 -
慕UI0539832
提问者
2018-05-13
service层的Junit测试是成功的,代码截图:
00
相似问题