警告: Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.haitao.service.ItemService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(mappedName=, shareable=true, description=, name=, type=class java.lang.Object, lookup=, authenticationType=CONTAINER)
但我的原因是bean注入失败
即没有从注册中心找到相应的服务
这不是报错的地方吗? 你看看你这个controller呗 看看是不是有问题追问
视频的 我没有这个"'itemController" 它自动生成?
追答我也是正在学,我也是半瓢水啊。我看的视屏,还有别人写的工程,可以直接导入的。