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,....相关推荐

  1. 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 ...

  2. Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans,报错解决

    记录自己今天遇到的一个小bug:在做头像上传功能时,出现如下错误,我有一个Properties类是和配置文件所绑定的,@ConfigurationProperties:告诉SpringBoot将本类中 ...

  3. 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 ...

  4. Spring框架中@Primary注解的作用

    @Primary注解 @Primary的作用就是当一个接口存在多个实现类时,我们就可以通过@Primary注解来指明哪个实现类作为首选进行自动装配注入. 如果不加@Primary注解,接口ICarSe ...

  5. Spring @bean冲突解决方案

    引用2个jar都实现了相同的@bean注入,这个是feign的Level @Bean public Level feignLoggerLevel() {return Level.FULL; } 这样报 ...

  6. java同名过滤器_Gateway Redis令牌桶请求限流过滤器

    spring cloud gateway默认基于redis令牌桶算法进行微服务的限流保护,采用RateLimter限流算法来实现. 1.引入依赖包 org.springframework.cloud ...

  7. 升级Springboot版本异常:HateoasConfiguration required a single bean, but 3 were found

    在项目从springboot1.x升级到2.2.1时 报错 *************************** APPLICATION FAILED TO START ************** ...

  8. 【Spring Boot】关于上传文件例子的剖析

    目录 Spring Boot 上传文件 功能实现 增加ControllerFileUploadController 增加ServiceStorageService 增加一个Thymeleaf页面 修改 ...

  9. SpringBoot项目启动异常:Field settlementMissService in...Service required a single bean, but 2 were found:

    SpringBoot项目启动报错如下: *************************** APPLICATION FAILED TO START ************************ ...

最新文章

  1. 关于抢红包的_关于抢红包的作文500字
  2. java enumerator_简单介绍java Enumeration
  3. 如何自己动手写一个搜索引擎?我是一份害羞的教程
  4. 《结对-结对编程项目作业名称-结对项目总结》
  5. 人月神话阅读笔记06
  6. 31. Minimize compilation dependencies between files
  7. 文件磁盘相关函数[22]-文本文件读写-不同数据类型的写入
  8. 关于Java的this关键字
  9. ffmpeg超详细综合教程(二)——为直播流添加滤镜
  10. 三校生计算机word基础知识,江西省2017年三校生计算机高考试卷
  11. Windows 7 SP1 多国语言包(MUI language packs)官方下载
  12. 计算机已被锁定请联系管理员,win7电脑开机收到提示“您的账户已被停用,请向系统管理员咨询”怎么办?...
  13. 网易云信 android,网易云信/NIM_Android_UIKit
  14. UVM中的factory机制
  15. 前端自学日记-day5
  16. 硕博研究生英语综合教程 郭巍 听力材料(下)
  17. 深入理解JVM:Java语言与JVM关系
  18. @keyup.enter.native
  19. 计算机二级考试没过能重考吗,计算机二级能重复考吗
  20. h3c imc-dig 7 linux,H3C iMC iLP安装指导-7.0-5PW100

热门文章

  1. 安装JDK和tomcat环境变量配置
  2. MySQL趋势与前景技术分享
  3. javac -d . hello.java中的 -d .是什么作用?
  4. PostgreSql密码修改及重置
  5. 爬虫——爬取网页数据存入表格
  6. python相关性分析_python实践统计学中的三大相关性系数,并绘制相关性分析的热力图...
  7. 如何解压 .lz4 后缀文件
  8. 【java】java中输出字符串中的单个字符及获得其长度
  9. 23.文件特殊权限之SUID权限、SGID权限、Sticky BIT权限和ACL权限
  10. 【三十天精通 Vue 3】 专栏内容介绍