错误报告:

Description:

Field commentMapper in com.qc.qc_blog.service.impl.CommentServiceImpl required a bean of type 'com.qc.qc_blog.mapper.CommentMapper' that could not be found.

The injection point has the following annotations:
    - @org.springframework.beans.factory.annotation.Autowired(required=true)

Action:

Consider defining a bean of type 'com.qc.qc_blog.mapper.CommentMapper' in your configuration.

这个错误的原因是Mapper下面的没有加上@Mapper注解  自动配置找不到文件

像下图这样将函数加上@Mapper的注解即可

2021.6.25 草稿箱整理

后记:

这个是前面写的草稿,但是在学习了maven项目的现在又觉得这是一个很浅显的问题了,但是关于service和implement的东西暂时还未弄明白,等后面再来整理和补充

【错误记录】springboot项目报错Field xxx in com.xx.xx.xx.impl.xxImpl required a bean相关推荐

  1. springboot 启动报错Field XXX required a bean of type XXX that could not be found的解决方案总结

    1.检查 各个层的注解,尤其是Mapper层,看是否遗漏 @Mapper/@Repository 2.检查启动类注解,如若没问题,可加 @ComponentScan("需要扫描的包路径&qu ...

  2. 报错:Field userRepository in com.my.system.service.impl.UserServiceImpl required a bean of type ‘com.m

    项目启动报错:Field userRepository in com.my.system.service.impl.UserServiceImpl required a bean of type 'c ...

  3. SpringBoot项目报错解决:“Error starting ApplicationContext. To display the conditions report re-run ...”

    SpringBoot项目报错:Error starting ApplicationContext. To display the conditions report re-run your appli ...

  4. springboot项目报错:ERROR 9112 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] 的解决办法

    启动springboot项目,访问页面后报错 报错信息如下: [nio-8087-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.ser ...

  5. Field userDao in com.sd.sbmb.service.impl.UserServiceImpl required a bean of type ‘com.sd.sbmb.dao.U

    SpringBoot启动报错:Field userDao in com.sd.sbmb.service.impl.UserServiceImpl required a bean of type 'co ...

  6. Field xxxxDAO in com.nero.hua.service.impl.LoginServiceImpl required a bean of type

    Field userDAO in com.nero.hua.service.impl.LoginServiceImpl required a bean of type 'com.nero.hua.da ...

  7. Field userInfoMapper in com.example.test.service.impl.UserServiceImpl required a bean of type ‘com.

    Field userInfoMapper in com.example.test.service.impl.UserServiceImpl required a bean of type 'com.e ...

  8. springboot项目报错, 错误:找不到或无法加载主类com.xxx.xxx.Application

    springboot项目报,错误:找不到或无法加载主类com.xxx.xxx.Application 1.打开配置设置Edit Configurations- 2.点击+号,找到spring boot ...

  9. Springboot 项目 报 Unknown column ‘xxx’ in ‘where clause’ 错误

    项目 报 Unknown column 'xxx' in 'where clause' 错误 网上找了很多有以下几个方面 1. 列名不存在的结论,但是,很多时候起始并不是由于列名出错造成的.而是由于拼 ...

  10. 【错误记录】国际化报错 ( “xxx“ is not translated in “zh“ (Chinese) )

    文章目录 一.报错信息 二.解决方案 一.报错信息 对应用进行国际化时报错 , 报错信息 : "xxx" is not translated in "zh" ( ...

最新文章

  1. PCIE BAR空间
  2. 使用AdMob实现广告统一
  3. Ubuntu安装VMware Tools的方法
  4. java中var是什么意思_js中的var是什么意思
  5. POSIX 消息队列相关问题
  6. Java高级语法笔记-普通异常处理
  7. Mysql 常用show命令
  8. Android的Widget桌面应用学习
  9. 第1章 数据库系统概论---数据库原理及应用
  10. PS2模拟器 PCSX2 新手向
  11. 前道道指令、后道道指令暨先天八卦指令、后天八卦指令
  12. 安科瑞预付费水电集团物业解决方案-Susie 周
  13. 9元包一年 阿里宝与腾讯王卡10G/月全国流量
  14. iPhone 各机型屏幕尺寸
  15. eclipes error
  16. 阿里王坚:用“机器智能”取代“人工智能”概念
  17. Python写接口api
  18. 库存出现负数 mysql_MySQL处理高并发,防止库存超卖库存出现负数
  19. Vue.js + axios 实现excel下载
  20. 从一个Aspectj织入失效问题的解决说起

热门文章

  1. Postman汉化补丁
  2. 环境土壤物理模型HYDRUS1D/2D/3D实践技术
  3. 09-网格划分质量查看
  4. Delphi 的并行计算
  5. 沙盘模拟软件_ERP企业经营模拟第一次培训
  6. Edge浏览器安装Tampermonkey插件
  7. STM32:红外遥控接收模块
  8. c++调用powershell_告别 Windows 终端的难看难用,从改造 PowerShell 的外观开始
  9. SAP 金税解决方案
  10. cocos2d-x 3.x BabeLua 插件不能断点调试