No qualifying bean of type xxx
一 概述
Spring中我们一般会利用注解:
@Autowired 和 @Resource
参考: @autowired和@resource注解的区别是什么?-Java基础-PHP中文网https://www.php.cn/java/base/463170.html 当出现了 问题,我们先考虑的是,xxxbean是否被注入了,在实际工作使用了SpringMVC框架的时候一般先考虑是否需要添加一下注解,是的该bean被注入:
@Controller @Service @Reporsitry @Component
个人是由于忘记了添加@Component注解导致的。
暂时了解到此,更多详情后续补充。。。
No qualifying bean of type xxx相关推荐
- No qualifying bean of type xxx‘ available 的一种解决方法
No qualifying bean of type xxx' available 的一种解决方法 参考文章: (1)No qualifying bean of type xxx' available ...
- 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 ...
- 毕业设计Spring boot问题记录(后端二):No qualifying bean of type “xxx“: expected at least 1 bean which qualifies…
报错信息:No qualifying bean of type "xxx" idea Disconnected from the target VM, address: '127. ...
- 解决——》No qualifying bean of type ‘XXX‘ available
推荐链接: 总结-->[Java] 总结-->[Mysql] 总结-->[Spring] 总结-->[SpringBoot] 解决-->N ...
- 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 ...
- No qualifying bean of type ‘xxx‘的问题解决方案
在Springboot启动的时候报错误: No qualifying bean of type 'com.gzhc365.mix.http.api.HttpApi' available: expect ...
- 项目启动报错:No qualifying bean of type ‘xxx‘ available:
项目启动报错: Description: A component required a bean of type 'cn.hsa.its.abutment.bo.BusinessAcceptBo' t ...
- SpringBoot启动问题:No qualifying bean of type ‘XXX‘ available: ...
**记录:**SpringBoot 启动问题:No qualifying bean of type 'XX' available: expected at least 1 bean which qua ...
- No qualifying bean of type [XXX.XXX.XXX] found for dependency: expected at least 1 bean which q
老生常谈的问题,没写spring bean的注解(@service,@Repository..),所以无法完成自动装配.如果注解不行就在xml里面试试.
- No qualifying bean of type ‘XXX‘ available
今天在学习搭建jspring boot的时候遇到这样一个错误,应该也是很多初学者遇到的问题,或者类似的问题,如图: 翻译过来就是:没有符合的bean可以使用,我的这个就是UserMapper不能用. ...
最新文章
- tiny-cnn执行过程分析(MNIST)
- 消息队列怎么保证消息有没有重复消费(幂等性)?
- 利用AVR单片机 专用下载 USBtinyISP对Arduino UNO下载程序
- 谈了千百遍的缓存数据的一致性问题
- 20. Cookie 和 Session
- UIKit Particle Systems in iOS 5 Tutorial ( 附雨的粒子效果 )
- 201312-2-ISBN号码
- LeetCode(221) Maximal Square
- 226.翻转二叉树 (力扣leetcode) 博主可答疑该问题
- 大数据GIS系列(2)——空间大数据处理与分析案例
- 【长期维护】程序员锻炼法则
- 有关计算机和音乐论文,计算机音乐
- mixamo骨骼_Mixamo——在线三维人物角色骨骼自动绑定,上千动作库直接生成人物动画...
- 关于坯布的面料克重问题
- 为什么重写equals方法必须要重写hashCode方法
- 公众号题库系统接口-网课答案解析接口
- 电脑白屏或黑屏解决方法
- 学习淘淘商城第三十四课(在业务逻辑中添加缓存)
- 一篇非大厂的 Android 面试总结心得~
- hackmyvm-bunny walkthrough
热门文章
- biee12c连接hive_BIEE12c 迁移
- N叉树、page_size、数据库严格模式修改、数据库中delect和drop的不同
- Cloudstack 虚拟机实例(四)
- Windows server 2012网络负载均衡NLB
- 2021年最新前端面试题(js,vue,webpack,css,react)总结
- linux下实现图像金字塔+Qt5
- Spring Web Flow 文档学习
- Android 属性property_get/property_set
- 中断处理过程示意图_Linux中断处理
- Linux文件命令精通指南(二)(转)