java springmvc mybatis 服务器启动报错!Error creating bean with name 'itemController':

警告: 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)

第1个回答  2016-11-15
还有,查看一下是不是没有引入mapper 的 XML
第2个回答  2018-09-04
楼主怎么解决的,我也是这个问题
第3个回答  2018-03-13
我也卡在这了
但我的原因是bean注入失败
即没有从注册中心找到相应的服务
第4个回答  2016-08-17
你看的视屏还是看的书啊?Error creating bean with name 'itemController':
这不是报错的地方吗? 你看看你这个controller呗 看看是不是有问题追问

视频的 我没有这个"'itemController" 它自动生成?

追答

我也是正在学,我也是半瓢水啊。我看的视屏,还有别人写的工程,可以直接导入的。

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网