JavaShuo
栏目
标签
No qualifying bean of type 'com.example.miaosha.dao.UserDao' available: expected at least 1 bean whi
时间 2021-01-02
原文
原文链接
今天新建一个spring boot + mybatis 项目的时候,注解加的都没有问题,但是一直报一个错: 试了各种方法,但是还是一直报错,后来检查配置文件发现: 这这个依赖冲突了,导致service在注入dao的时候找不到一个唯一的bean,所以会一直报错,将下面的依赖删掉再运行就可以了。
>>阅读原文<<
相关文章
1.
No qualifying bean of type 'xxxMapper' available: expected at least 1 bean which qualifies as autow
2.
No qualifying bean of type 'com.netflix.discovery.DiscoveryClient' available
3.
在springboot启动报错:No qualifying bean of type 'javax.sql.DataSource' available: expected at ...
4.
No qualifying bean of type ‘javax.servlet.Filter‘ available
5.
No qualifying bean of type [org.springframework.data.mongodb.core.MongoTemplate]
6.
factory.NoSuchBeanDefinitionException: No qualifying bean of type
7.
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com...
8.
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.wh.
9.
expected at least 1 bean which qualifies as autowire candidate.
10.
NoSuchBeanDefinitionException: No qualifying bean of type ‘com.cskaoyan.demo.DemoService‘ available
更多相关文章...
•
Spring自动装配Bean
-
Spring教程
•
Spring基于Annotation装配Bean
-
Spring教程
•
使用阿里云OSS+CDN部署前端页面与加速静态资源
•
Java 8 Stream 教程
相关标签/搜索
bean
configuration@bean
configuration&bean
spring bean
configuration&@bean
qualifying
available
expected
servlet+bean+jsp
type
PHP 7 新特性
Spring教程
Redis教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
子类对象实例化全过程
2.
【Unity2DMobileGame_PirateBomb09】—— 设置基本敌人
3.
SSIS安装以及安装好找不到商业智能各种坑
4.
关于 win10 安装好的字体为什么不能用 WebStrom找不到自己的字体 IDE找不到自己字体 vs找不到自己字体 等问题
5.
2019版本mac电脑pr安装教程
6.
使用JacpFX和JavaFX2构建富客户端
7.
MySQL用户管理
8.
Unity区域光(Area Light) 看不见光线
9.
Java对象定位
10.
2019-9-2-用自动机的思想说明光速
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
No qualifying bean of type 'xxxMapper' available: expected at least 1 bean which qualifies as autow
2.
No qualifying bean of type 'com.netflix.discovery.DiscoveryClient' available
3.
在springboot启动报错:No qualifying bean of type 'javax.sql.DataSource' available: expected at ...
4.
No qualifying bean of type ‘javax.servlet.Filter‘ available
5.
No qualifying bean of type [org.springframework.data.mongodb.core.MongoTemplate]
6.
factory.NoSuchBeanDefinitionException: No qualifying bean of type
7.
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com...
8.
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.wh.
9.
expected at least 1 bean which qualifies as autowire candidate.
10.
NoSuchBeanDefinitionException: No qualifying bean of type ‘com.cskaoyan.demo.DemoService‘ available
>>更多相关文章<<