No qualifying bean of type ‘XXX‘ available
今天在学习搭建jspring boot的时候遇到这样一个错误,应该也是很多初学者遇到的问题,或者类似的问题,如图:
翻译过来就是:没有符合的bean可以使用,我的这个就是UserMapper不能用。
解决办法:一般情况下在DemoApplication中添加@MapperScan(basePackages = {"com.example.demo.mapper"}),标红的地方就是上面我所提的UserMapper的路径,添加上就好了。
这样问题就解决啦!!!
No qualifying bean of type ‘XXX‘ available相关推荐
- 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里面试试.
最新文章
- 一个好玩的 屏蔽别人审查元素F12 右键及其他复制粘贴等
- windows改变php版本
- 游戏引擎算法探究:游戏核心之固定流水线
- 音视频技术开发周刊 | 191
- mysql删除用户账号和密码_mysql添加、删除用户和授权用户
- 可以操作excel吗_Excel快速填充,这四种方法你会吗?操作逆天告别加班
- 破格晋升!一批高校教师脱颖而出
- 美部长施压堵华为,遭印度电信巨头现场驳斥 ;WhatsApp被曝漏洞:仅凭一张GIF动图黑客便可接管账户……...
- 迅雷下载Linux Oracle11gR2和Oracle12c
- Rational Rose学习笔记02:创建用例图
- 单片机C语言任何位置跳转到任何指定地址 -转
- pm2 管理 npm start
- [推荐算法]基于用户的协同过滤算法
- Linux-软件包管理-rpm命令管理-安装-卸载
- java 防止反射_解决反射型XSS漏洞攻击
- c 打印二叉树_基础扩展 | 22. 遍历二叉树—前序遍历算法的VBA代码解析
- scrt_sfx安装
- 【输入法】迄今为止,居然有这么多汉字输入法!
- 微信小程序使用Echarts 实现世界地图(其它地图同理)
- 计算机与宽带路由器的连接过程,路由器怎么插线和宽带图解 路由器设置步骤图解...
热门文章
- linux下tail命令的用法,tail命令_linux tail命令的用法
- 双休日,只有发呆睡觉!
- iOS开发--保存png图片到相册有白边
- resteasy学习
- linux kodi 设置中文,Kodi 19 “Matrix” 开源家庭影院发布,界面设置成简体中文
- 使用python绘制月饼,慢慢等待将至的中秋节
- 超高清视频(北京)制作技术协同中心:发挥国家级平台作用,引领我国8K超高清产业高质量发展
- JS删除数组中指定元素/删除数组中指定对象
- Ubuntu安装截图软件flame
- 达梦数据库的主要数据类型