前言

写完代码运行后,出现这个错误,当时一脸懵逼,不过不慌不慌及时找度娘即可

一、问题分析和解决

问题分析:找不到这个组件库中的bean
解决方法,如下:

添加上 这个即可,如果还不行,就检查下你的配置文件路径问题

总结

看日志很重要

A component required a bean of type ‘com.dmsd.spm.provider.service.BookServi相关推荐

  1. 解决:A component required a bean of type ‘javax.jms.Queue‘ that could not be found.

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 情景描述:只是想简单写个 ActiveMQ 的小样,启动服务却报错: Error starti ...

  2. A component required a bean of type ‘com.lw.mapper.StudentMapper‘ that could not be found.

    当我们用springboot整合mybatis时,发生以下错误 Description:A component required a bean of type 'com.lw.mapper.Stude ...

  3. 【A component required a bean of type ‘‘ that could not be found】

    A component required a bean of type 'cn.gson.oasys.model.dao.managework.mappers.MwDetailsMapper' tha ...

  4. SpringBoot中service注入失败 出现A component required a bean of type 'com.czxy.changgou3.mapper.OrderGoodsMa

    错误信息 Error starting ApplicationContext. To display the conditions report re-run your application wit ...

  5. 调用不同模块A component required a bean of type ‘com.qhzx.td.service.OtcPurchaseSellOutManageService‘ that

    springboot应用启动的时候,bean的加载扫描失败,错误信息如下A component required a bean of type 'XXX' that could not be foun ...

  6. A component required a bean of type ‘com.wyh.service.XXX‘ that could not be found.

    A component required a bean of type 'XXXService' that could not be found 组件需要找不到"Service"类 ...

  7. A component required a bean of type ‘XXX‘ that could not be found 解决办法

    springboot应用启动的时候,bean的加载扫描失败,错误信息如下A component required a bean of type 'XXX' that could not be foun ...

  8. 【已解决】A component required a bean of type ‘XXService‘ that could not found

    一.问题 使用了Mybatis generator自动生成的bean和mapper 写完service层和controller层后运行报错A component required a bean of ...

  9. A component required a bean of type 'com.xxx.xxx.service.xxxService' that could not be found的debug报错

    做个笔记防止一直出现这种问题,其实就是很简单的一个问题只是在ServiceImpl中少了注释才会出现这个debug 只要在下面加入这个注释就能获取到bean

最新文章

  1. java ehcahce刷新_springboot结合ehcache防止恶意刷新请求的实现
  2. 良心发现,时隔一年再回首莫比乌斯反演(公式性质证明+题目练习)
  3. express+vue+mongodb+session 实现注册登录
  4. signature=8405d26e250ad07c44560263cb1d4fc0,Systems for analyzing microtissue arrays
  5. 简单英文题 16 Maximum Sum Not Exceeding K(python)
  6. linux系统 安装mysql,在linux系统中安装MySQL
  7. IIS网站无法播放视频的解决方法
  8. Flutter实战:手把手教你写Flutter Plugin
  9. 【android】环境变量的设置
  10. 为什么写网页用php,php能写网页吗
  11. MAC删除开机自启动程序
  12. variable ‘XXX cannot be implicitly captured in a lambda with no capture-default specified
  13. RNN attention model intution
  14. 学会和人沟通与请教问题秘籍
  15. python编写一个函数判断一个数是否为素数是则返回yes_编写函数,判断一个整数是否为素数,并编写主程序调用该函数。_学小易找答案...
  16. 新能源产业链全景图(建议收藏)
  17. ZT看不懂的中国历史:老蒋的智力竟然在50之下
  18. sherwood算法
  19. java 动物声音 模拟器
  20. 趋高智能注塑件表面视觉检测之机器视觉的缺陷检测方案

热门文章

  1. vs2017开发ActiveX(主讲OCX)(十一)、类向导中MFC ActiveX添加方法、添加函数、添加变量、添加事件、添加属性、添加方法的区别
  2. 通过WIFI双向透传串口向Arduino Uno 无线上传(更新)程序
  3. 能量时域空间物理_2.1时域数学建模,二阶系统阻尼比与品质因数存在这样奇妙的关系...
  4. 名医高效良方(三叉神经痛)
  5. MATLAB设计控制系统仿真实验,基于MATLAB的自动控制原理实验仿真系统的设计
  6. 2021年煤矿安全监测监控考试资料及煤矿安全监测监控考试试卷
  7. Arduino连接nRF24L01无线收发模块
  8. 详细分析软件测试的14种类型
  9. 【allegro 17.4软件操作保姆级教程八】布线操作基础之三
  10. 秩和检验(秩的概念,秩和检验法)