A bean with that name has already been defined in class path resource [.] and overriding is disabled
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相关推荐
- The bean ‘beanNameViewResolver‘, defined in class path resource [cn/afterturn/easypoi/configuration/
报错信息: Description: The bean 'beanNameViewResolver', defined in class path resource[cn/afterturn/easy ...
- 分页查询时报错:The bean ‘localeResolver‘, defined in class path resource [com/botany/spore/core/config/Comm
问题描述: *************************** APPLICATION FAILED TO START ***************************Description ...
- springboot easypoi 报错The bean ‘beanNameViewResolver‘, defined in class path resource [cn/afterturn/e
亲测好用!!!!!!!!!!!!!!! 事故现场: The bean 'beanNameViewResolver', defined in class path resource [cn/aftert ...
- springboot easypoi 报错The bean 'beanNameViewResolver', defined in class path resource [cn/afterturn/e
今天在用springboot easypoi 做导出导入时,配置完成后启动项目报The bean 'beanNameViewResolver', defined in class path resou ...
- springcloud项目启动时报错 The bean ‘dataSource‘, defined in class path resource
项目启动时报错,如下: Error starting ApplicationContext. To display the conditions report re-run your applicat ...
- 启动springboot报错Error creating bean with name 'dataSource' defined in class path resource
2019独角兽企业重金招聘Python工程师标准>>> 启动springboot报错Error creating bean with name 'dataSource' define ...
- 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 ...
- BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [
现场情景: 初次搭建springboot工程,原本要搭建一个springboot+mybatis的maven工程,听说springboot会把一切给配置好,天真的在执行完mybatis自动生成mapp ...
- 启动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 ...
最新文章
- ajax的数据库,AJAX 数据库
- python中readline的用法_python中readline的用法
- Java LinkedList对象的clone()方法和示例
- 贪心思维 专题记录 2017-7-21
- php 逻辑与运算符使用说明
- 【转】JSch - Java实现的SFTP(文件下载详解篇)
- 真无线蓝牙耳机哪个好?四款买了不亏的真无线蓝牙耳机
- 静态VLAN及配置实例详解
- 如意淘商品推荐技术介绍之一:基础推荐
- typecho插件仓库集合版,非常方便的使用插件
- Linux相对路径和绝对路径
- 芯力特SIT1043Q完全替代恩智浦TJA1043
- SQL 中的昨天、今天和明天
- oracle的set函数,setex(oracle trunc函数)
- 一切没你想象那么糟,让你瞬间开心的30件小事
- java弹窗设置为不可关闭_javascript实现无法关闭的弹框
- 酷狗音乐web端API接口数据
- 2019年Q3股票行情:依旧大喜大悲
- Java 亚马逊Amazon spapi对接开发,java Sdk,授权和接口访问步骤详细说明
- 【解决】iptables -P INPUT DROP后无法联网