项目启动报错:
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:相关推荐

  1. 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 ...

  2. 【图文详解】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 ...

  3. 【踩坑日记】springboot项目启动报错error create bean with name

    前言 启动springboot项目报错error create bean with name xxx 以为是哪个bean没有装配上,排查了所有的bean,发现都装配了 原因分析 仔细看了报错日志,发现 ...

  4. SpringBoot启动问题:No qualifying bean of type ‘XXX‘ available: ...

    **记录:**SpringBoot 启动问题:No qualifying bean of type 'XX' available: expected at least 1 bean which qua ...

  5. 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 ...

  6. 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 ...

  7. 项目启动的时候显示报错No qualifying bean of type “com.xx.xxDao“

    今天启动微服务的时候报了个错,如下图,注入失败,有两种情况,一种是找不到无法注入,一种是至少有一个以上可以注入, 当时查看了这个Dao发现这个Dao是在com.a.dao这个包下(pom引入的外部封装 ...

  8. springBoot整合mybatis-plus 报错 No qualifying bean of type

    1.这两个依赖都加上,就不会报错了 <!--加上mybatis依赖--> <dependency><groupId>org.mybatis.spring.boot& ...

  9. 多数据源启动异常: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 ...

  10. 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 ...

最新文章

  1. android 购物车数量加减计算(几行代码实现效果)
  2. Xamarin Android提示内存溢出错误
  3. 深度解析(十五)哈夫曼树
  4. redis事务原理,使用,详解
  5. 【转】科大校长给数学系学弟学妹的忠告本科数学参考书
  6. 贾跃亭:在性能、奢华和科技综合评比中 FF 91战胜了奔驰S迈巴赫、库里南
  7. 优化mysql的21个建议_MySQL优化小建议
  8. dicom文件的后缀_dcm文件扩展名,dcm文件怎么打开?
  9. 数据分类是否一定要求样本均衡
  10. C++定时器和时间轮
  11. 七.OpenCv图像轮廓
  12. ios 根据日期知道周几_iOS-通过日期计算是周几
  13. 计算机语言里的堆栈是什么意思,汇编语言中的堆栈是什么?
  14. 戴愫-有效提升与陌生人的社交能力
  15. ArcSDE10升级SP1补丁
  16. Mixly第26课~第28课,内容抢先看 | Mixly米思齐纯干货系列
  17. 怎么查看计算机里隐藏的文件夹,怎么查看隐藏文件,教您怎么查看隐藏文件
  18. git reset(回退add操作)
  19. Cesium中simple.czml文件格式详解
  20. 带你走进计算机辅助药物设计(CADD)蛋白质分子对接

热门文章

  1. 纳米材料的特点和用途
  2. 2022年最流行的自动化测试工具有哪些?全网最全最细都在这里了
  3. 【单片机毕业设计】【mcuclub-jj-046】基于单片机的红外遥控器的设计
  4. File操作 - list()/listFiles()与目录过滤器
  5. 后台软件分层图(附带web端)
  6. 有些人的成功,并不是偶然(一个真实的故事)
  7. 12 个强大的现代 CSS 技术
  8. 摄影-模特引导、直方图、色调曲线、分离色调、相机校准、HSL、渐变滤镜、径向滤镜、画笔
  9. 相互保,支付宝的又一个“余额宝”?|一点财经
  10. 基于决策树的隐形眼镜类型预测