项目启动报错:No qualifying bean of type ‘xxx‘ available:
项目启动报错:
Description:
A component required a bean of type ‘cn.hsa.its.abutment.bo.BusinessAcceptBo’ that could not be found.
Action:
Consider defining a bean of type ‘cn.hsa.its.abutment.bo.BusinessAcceptBo’ in your configuration.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.taobao.pandora.boot.loader.LaunchRunner.run(LaunchRunner.java:38)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘businessAcceptService’: Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘cn.hsa.its.abutment.bo.BusinessAcceptBo’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
报错原因:没有找到BusinessAcceptBo的bean ,排查发现BO的实现类缺少@Componen 这个注解 导致依赖注入不进去
解决方案: BO实现类加@Componen
项目启动报错:No qualifying bean of type ‘xxx‘ available:相关推荐
- Spring项目启动报错No qualifying bean of type [xxx] available: expected single matching bean but found 2
启动报错: No qualifying bean of type [class1] available: expected single matching bean but found 2,class ...
- 【图文详解】SpringBoot项目启动报错:The bean ‘xxxServiceImpl‘ could not be injected as a ‘xxxServiceImpl‘ ...
问题描述: 项目启动报错:The bean 'xxxServiceImpl' could not be injected as a 'cn.xxxx.service.xxxServiceImpl' b ...
- 【踩坑日记】springboot项目启动报错error create bean with name
前言 启动springboot项目报错error create bean with name xxx 以为是哪个bean没有装配上,排查了所有的bean,发现都装配了 原因分析 仔细看了报错日志,发现 ...
- SpringBoot启动问题:No qualifying bean of type ‘XXX‘ available: ...
**记录:**SpringBoot 启动问题:No qualifying bean of type 'XX' available: expected at least 1 bean which qua ...
- mybatis项目启动报错 The content of element type resultMap must match (constructor?,id*,result*,associat...
启动项目报错 2018-02-26 17:09:51,535 ERROR [org.springframework.web.context.ContextLoader] - Context initi ...
- Service类报错No qualifying bean of type ‘’ available: expected at least 1 bean which qualifies as auto
Spring框架 Error creating bean No qualifying bean of type '' available: expected at least 1 bean which ...
- 项目启动的时候显示报错No qualifying bean of type “com.xx.xxDao“
今天启动微服务的时候报了个错,如下图,注入失败,有两种情况,一种是找不到无法注入,一种是至少有一个以上可以注入, 当时查看了这个Dao发现这个Dao是在com.a.dao这个包下(pom引入的外部封装 ...
- springBoot整合mybatis-plus 报错 No qualifying bean of type
1.这两个依赖都加上,就不会报错了 <!--加上mybatis依赖--> <dependency><groupId>org.mybatis.spring.boot& ...
- 多数据源启动异常:No qualifying bean of type ‘javax.sql.DataSource‘ available: more than one ‘primary‘ bean f
多数据源报错:No qualifying bean of type 'javax.sql.DataSource' available: more than one 'primary' bean fou ...
- No qualifying bean of type xxx found for dependency expected at least 1 bean which qualifies as ...
之前没留意web.xml文件的加载顺序,后面遇到问题再回过头来看,先说我遇到的原因如下, No qualifying bean of type xxx found for dependency ex ...
最新文章
- android 购物车数量加减计算(几行代码实现效果)
- Xamarin Android提示内存溢出错误
- 深度解析(十五)哈夫曼树
- redis事务原理,使用,详解
- 【转】科大校长给数学系学弟学妹的忠告本科数学参考书
- 贾跃亭:在性能、奢华和科技综合评比中 FF 91战胜了奔驰S迈巴赫、库里南
- 优化mysql的21个建议_MySQL优化小建议
- dicom文件的后缀_dcm文件扩展名,dcm文件怎么打开?
- 数据分类是否一定要求样本均衡
- C++定时器和时间轮
- 七.OpenCv图像轮廓
- ios 根据日期知道周几_iOS-通过日期计算是周几
- 计算机语言里的堆栈是什么意思,汇编语言中的堆栈是什么?
- 戴愫-有效提升与陌生人的社交能力
- ArcSDE10升级SP1补丁
- Mixly第26课~第28课,内容抢先看 | Mixly米思齐纯干货系列
- 怎么查看计算机里隐藏的文件夹,怎么查看隐藏文件,教您怎么查看隐藏文件
- git reset(回退add操作)
- Cesium中simple.czml文件格式详解
- 带你走进计算机辅助药物设计(CADD)蛋白质分子对接