阿里云开发者社区

电脑版
提示:原网页已由神马搜索转码, 内容由developer.aliyun.com提供.

Could not autowire. No beans of ‘VideoDao‘ type found.

2024-07-029
版权
版权声明:
本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《 阿里云开发者社区用户服务协议》和 《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写 侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
简介:Could not autowire. No beans of ‘VideoDao‘ type found.

     今天在敲代码的时候,遇到了一个bug

2、看一下xml配置文件的resultType的引导路径,是不是bean目录的,不是写成bean目录了,

修改一下,改成bean目录的路径,这里resultType必须指向bean目录,

3、这里可能是Dao出了问题

4、这里添加了@Repository,就变好了,参考文章:

Could not autowire.No beans of ‘XXXX‘type found的解决方法(详细解析其用法注解)-CSDN博客


文章标签:
相关文章
|
Java数据库连接mybatis
Consider defining a bean of type ‘com.example.democrud.democurd.usermapper.DaoMapper‘ in your config
Consider defining a bean of type ‘com.example.democrud.democurd.usermapper.DaoMapper‘ in your config
16300
|
1月前
|
Java数据库连接Maven
Could not autowire. No beans of ‘ArticleMapper‘ type found. 要添加Mybatis的依赖
Could not autowire. No beans of ‘ArticleMapper‘ type found. 要添加Mybatis的依赖
|
3月前
No qualifying bean of type [com.XX.mapper.SysNameMapper ] found for dependency
No qualifying bean of type [com.XX.mapper.SysNameMapper ] found for dependency
|
10月前
|
Java编译器
解决NoSuchBeanDefinitionException: No qualifying bean of type ‘bean.User‘ available
解决NoSuchBeanDefinitionException: No qualifying bean of type ‘bean.User‘ available
|
10月前
|
JavaSpring
【Java异常】The dependencies of some of the beans in the application context form a cycle
【Java异常】The dependencies of some of the beans in the application context form a cycle
|
10月前
|
JavaSpring
BeanCreationException: Error creating bean with name ‘configurationPropertiesBeans‘ defined in class
BeanCreationException: Error creating bean with name ‘configurationPropertiesBeans‘ defined in class
12900
|
XMLJava程序员
Spring启动报错--class path resource [Beans.xml] cannot be opened because it does not exist
程序员不是在去生产bug的路上,那就是在去解决bug的路上。🤣🤣🤣🤣
15511
|
NoSQLJavaRedis
5. 成功解决:Could not autowire. No beans of 'RedisConnectionFactory' type found.
今天建了一个新项目,使用 Spring Boot 整合 Redis 时,IDEA 被提醒“Could not autowire. No beans of 'RedisConnectionFactory' type found. ”错误,意思是不能自动装配“RedisConnectionFactory”。
240611
Error creating bean with name ‘userServiceImpl‘: Unsatisfied dependency expressed through field ‘bas
Error creating bean with name ‘userServiceImpl‘: Unsatisfied dependency expressed through field ‘bas
32800
|
Java
springboot3 解决:Could not autowire. No beans of ‘JavaMailSender‘ type found
因为 spring-boot-starter-mail 默认使用某些包发生了变化,在 2.2.xx 版本前后不一,解决对应bug
35400

热门文章

最新文章

  • 1
    以 Vue 3 项目为例,多个请求下如何全局封装 Loading 的展示与关闭?其中大有学问!
    16
  • 2
    仅花了 1 个小时!!就学会了在< script setup> 中优雅地定义和使用全局状态管理
    16
  • 3
    每个前端开发人员都必须知道的 8 个 React 组件库!【建议收藏】
    18
  • 4
    墙裂推荐!Vue3 实现B站页面滚动开启小屏播放功能,超简单!!
    15
  • 5
    不可思议!!我被这5 个 JavaScript 新功能惊到了...
    12
  • 6
    一场前端框架的“武林大会”,三大主流框架之间的性能比较!!!
    13
  • 7
    前端人注意了!Nuxt 的服务器专用组件应该引起你的关注!!
    11
  • 8
    低代码到底是前端的 “ 福 ” 还是 “ 孽 ”???
    11
  • 9
    什么是 Vapor 模式?为什么说它会成为 Vue 的未来...
    11
  • 10
    摸鱼必备!!10个你不知道的 Vue 3 组件库...
    13
  • 下一篇
    云函数