启动tomcat错误 找不到bean
来源:互联网 发布:vscode前端必备插件 编辑:程序博客网 时间:2024/06/11 18:32
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.taotao.serviceimpl.ItemServiceImpl com.taotao.controller.ItemController.itemService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.taotao.serviceimpl.ItemServiceImpl] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
经过这么久的研究上面错误的根本原因是注入问题,注意autowired或set方法
is not writable or has an invalid setter method
这个也是一样的道理,检查appication xml文件有无错误
1 0
- 启动tomcat错误 找不到bean
- tomcat 启动报找不到 ActionServlet 错误 解决方法
- TOMCAT启动时候报找不到工程错误解决方案
- Tomcat启动找不到StrutsPrepareAndExecuteFilter
- tomcat启动找不到子容器
- tomcat 启动报 找不到 StrutsPrepareAndExecuteFilter
- tomcat 启动找不到.class文件
- 启动tomcat出现一下错误: org.springframework.beans.factory.BeanCreationException: Error creating bean with n
- 启动tomcat的时候一个奇怪的类找不到的错误研究!
- 关于为什么jar包放入classpath为什么启动tomcat还报找不到类的错误
- MyEclipse部署按钮没反应以及tomcat启动报各种filter找不到错误
- Tomcat |Tomcat启动超时错误
- tomcat启动错误
- tomcat启动错误(1)
- tomcat 启动错误
- Tomcat启动错误
- tomcat 启动错误浅谈
- tomcat 启动错误
- SVD
- yii2表单
- 【poj 3254】Corn Fields 状压动规
- 【数据结构】算法10.3 插入排序-表插入
- 分布式session会话Sticky Sessions
- 启动tomcat错误 找不到bean
- Unity 3D安装与破解
- 大数据下并发同步的详解
- memcpy内存复制代码的安全版本
- JQuery删除和添加子节点
- 史上最全最强SpringMVC详细示例实战教程
- spring--mybatis--activeMQ集成(一)
- Android studio如何使用SVN进行版本控制
- 第八课 IDEA开发spark