Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans,....
Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
报这个错是因为sringboot通过@Autowired注入接口的实现类时发现有多个,也就是有多个类继承了这个接口,spring容器不知道使用哪一个。
完整报错
解决方案
起因就是这里配置了这个
clientSecret不匹配
报错行
原因:存储时加密了,导致取出来的时候也是加密的
解决方案,将加密的地方取消
Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans,....相关推荐
- Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or us
项目原来一直好好地,原来不怎么启动的模块,来了新任务,去启动了一下,发现报错 Consider marking one of the beans as @Primary, updating the c ...
- Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans,报错解决
记录自己今天遇到的一个小bug:在做头像上传功能时,出现如下错误,我有一个Properties类是和配置文件所绑定的,@ConfigurationProperties:告诉SpringBoot将本类中 ...
- SpringBoot中提示:Consider marking one of the beans as @Primary, updating the consumer to accept multipl
场景 SpringBoot项目在启动时提示: Consider marking one of the beans as @Primary, updating the consumer to accep ...
- Spring框架中@Primary注解的作用
@Primary注解 @Primary的作用就是当一个接口存在多个实现类时,我们就可以通过@Primary注解来指明哪个实现类作为首选进行自动装配注入. 如果不加@Primary注解,接口ICarSe ...
- Spring @bean冲突解决方案
引用2个jar都实现了相同的@bean注入,这个是feign的Level @Bean public Level feignLoggerLevel() {return Level.FULL; } 这样报 ...
- java同名过滤器_Gateway Redis令牌桶请求限流过滤器
spring cloud gateway默认基于redis令牌桶算法进行微服务的限流保护,采用RateLimter限流算法来实现. 1.引入依赖包 org.springframework.cloud ...
- 升级Springboot版本异常:HateoasConfiguration required a single bean, but 3 were found
在项目从springboot1.x升级到2.2.1时 报错 *************************** APPLICATION FAILED TO START ************** ...
- 【Spring Boot】关于上传文件例子的剖析
目录 Spring Boot 上传文件 功能实现 增加ControllerFileUploadController 增加ServiceStorageService 增加一个Thymeleaf页面 修改 ...
- SpringBoot项目启动异常:Field settlementMissService in...Service required a single bean, but 2 were found:
SpringBoot项目启动报错如下: *************************** APPLICATION FAILED TO START ************************ ...
最新文章
- 关于抢红包的_关于抢红包的作文500字
- java enumerator_简单介绍java Enumeration
- 如何自己动手写一个搜索引擎?我是一份害羞的教程
- 《结对-结对编程项目作业名称-结对项目总结》
- 人月神话阅读笔记06
- 31. Minimize compilation dependencies between files
- 文件磁盘相关函数[22]-文本文件读写-不同数据类型的写入
- 关于Java的this关键字
- ffmpeg超详细综合教程(二)——为直播流添加滤镜
- 三校生计算机word基础知识,江西省2017年三校生计算机高考试卷
- Windows 7 SP1 多国语言包(MUI language packs)官方下载
- 计算机已被锁定请联系管理员,win7电脑开机收到提示“您的账户已被停用,请向系统管理员咨询”怎么办?...
- 网易云信 android,网易云信/NIM_Android_UIKit
- UVM中的factory机制
- 前端自学日记-day5
- 硕博研究生英语综合教程 郭巍 听力材料(下)
- 深入理解JVM:Java语言与JVM关系
- @keyup.enter.native
- 计算机二级考试没过能重考吗,计算机二级能重复考吗
- h3c imc-dig 7 linux,H3C iMC iLP安装指导-7.0-5PW100
热门文章
- 安装JDK和tomcat环境变量配置
- MySQL趋势与前景技术分享
- javac -d . hello.java中的 -d .是什么作用?
- PostgreSql密码修改及重置
- 爬虫——爬取网页数据存入表格
- python相关性分析_python实践统计学中的三大相关性系数,并绘制相关性分析的热力图...
- 如何解压 .lz4 后缀文件
- 【java】java中输出字符串中的单个字符及获得其长度
- 23.文件特殊权限之SUID权限、SGID权限、Sticky BIT权限和ACL权限
- 【三十天精通 Vue 3】 专栏内容介绍