A bean with that name has already been defined in class path resource [org/springframework/cloud/commons/security/ResourceServerTokenRelayAutoConfiguration.class] and overriding is disabled.

完整报错信息如下:

***************************
APPLICATION FAILED TO START
***************************Description:The bean 'accessTokenContextRelay', defined in class path resource [org/springframework/cloud/security/oauth2/client/ResourceServerTokenRelayAutoConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/cloud/commons/security/ResourceServerTokenRelayAutoConfiguration.class] and overriding is disabled.Action:Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=trueProcess finished with exit code 1

如下图

原因:

重名

解决方案:

其实方案已经告诉我们:

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

添加配置:

或起别名

即可解决!!

..


..

Thanks

A bean with that name has already been defined in class path resource [.] and overriding is disabled相关推荐

  1. The bean ‘beanNameViewResolver‘, defined in class path resource [cn/afterturn/easypoi/configuration/

    报错信息: Description: The bean 'beanNameViewResolver', defined in class path resource[cn/afterturn/easy ...

  2. 分页查询时报错:The bean ‘localeResolver‘, defined in class path resource [com/botany/spore/core/config/Comm

    问题描述: *************************** APPLICATION FAILED TO START ***************************Description ...

  3. springboot easypoi 报错The bean ‘beanNameViewResolver‘, defined in class path resource [cn/afterturn/e

    亲测好用!!!!!!!!!!!!!!! 事故现场: The bean 'beanNameViewResolver', defined in class path resource [cn/aftert ...

  4. springboot easypoi 报错The bean 'beanNameViewResolver', defined in class path resource [cn/afterturn/e

    今天在用springboot easypoi 做导出导入时,配置完成后启动项目报The bean 'beanNameViewResolver', defined in class path resou ...

  5. springcloud项目启动时报错 The bean ‘dataSource‘, defined in class path resource

    项目启动时报错,如下: Error starting ApplicationContext. To display the conditions report re-run your applicat ...

  6. 启动springboot报错Error creating bean with name 'dataSource' defined in class path resource

    2019独角兽企业重金招聘Python工程师标准>>> 启动springboot报错Error creating bean with name 'dataSource' define ...

  7. Meavn 搭建项目遇到Error creating bean with name 'sessionFactory' defined in class path resource...

    Error creating bean with name 'sessionFactory' defined in class path resource .nested exception is j ...

  8. BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [

    现场情景: 初次搭建springboot工程,原本要搭建一个springboot+mybatis的maven工程,听说springboot会把一切给配置好,天真的在执行完mybatis自动生成mapp ...

  9. 启动maven项目在eclipse中报错 Can‘t find class [×××] for bean with name '××' defined in class path resource

    场景:从svn中检出maven项目到本地,导入到eclipse中运行,启动tomcat时报错: Can't find class [××] for bean with name '××' define ...

最新文章

  1. ajax的数据库,AJAX 数据库
  2. python中readline的用法_python中readline的用法
  3. Java LinkedList对象的clone()方法和示例
  4. 贪心思维 专题记录 2017-7-21
  5. php 逻辑与运算符使用说明
  6. 【转】JSch - Java实现的SFTP(文件下载详解篇)
  7. 真无线蓝牙耳机哪个好?四款买了不亏的真无线蓝牙耳机
  8. 静态VLAN及配置实例详解
  9. 如意淘商品推荐技术介绍之一:基础推荐
  10. typecho插件仓库集合版,非常方便的使用插件
  11. Linux相对路径和绝对路径
  12. 芯力特SIT1043Q完全替代恩智浦TJA1043
  13. SQL 中的昨天、今天和明天
  14. oracle的set函数,setex(oracle trunc函数)
  15. 一切没你想象那么糟,让你瞬间开心的30件小事
  16. java弹窗设置为不可关闭_javascript实现无法关闭的弹框
  17. 酷狗音乐web端API接口数据
  18. 2019年Q3股票行情:依旧大喜大悲
  19. Java 亚马逊Amazon spapi对接开发,java Sdk,授权和接口访问步骤详细说明
  20. 【解决】iptables -P INPUT DROP后无法联网

热门文章

  1. 那些年啊,那些事——一个程序员的奋斗史 ——107
  2. 把树莓派系统语言恢复为英语
  3. UE4 打包常规步骤
  4. java 郑莉 视频_[Java基础] 清华大学java语言教学视频 共49讲 郑莉主讲
  5. 使用 JPQL 和原生 SQL 查询 JPA 实体(转)
  6. 启动tomcat失败 8005 端口被占用
  7. 年终总结季,咋看 PDF 版知识星球中的总结帖呢?
  8. 三本计算机怎么调音乐,读三本音乐教材
  9. android bitmap转drawable
  10. 宝可梦探险寻宝料理php,宝可梦探险寻宝料理配方 宝可梦探险寻宝食谱一览