项目启动时报错,如下:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-04-25 18:05:24.483 ERROR   7880 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : ***************************
APPLICATION FAILED TO START
***************************Description:The bean 'dataSource', defined in class path resource [com/inspur/tinyframework/datasource/config/DruidDatasourceConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class] and overriding is disabled.Action:Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=trueDisconnected from the target VM, address: '127.0.0.1:54719', transport: 'socket'Process finished with exit code 1

根据错误信息 可以看出

解决办法

在配置文件中添加配置
spring.main.allow-bean-definition-overriding=true

springcloud项目启动时报错 The bean ‘dataSource‘, defined in class path resource相关推荐

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

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

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

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

  3. 【Spring5】Spring项目运行时报错:IOException parsing XML document from class path resource [bean.xml]

    需要把bean.xml文件放在当前module的src文件夹下,而不能是其他的package下.

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

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

  5. 【报错笔记】maven项目启动时报错

    maven项目启动时报错,通过maven test知报错原因如下: 解决方案:在pom.xml中指定项目的编码方式为utf-8 方法一: 在pom.xml的/project/build/plugins ...

  6. java项目启动时登录,Java项目启动时报错解决方法

    当前位置:我的异常网» Java Web开发 » Java项目启动时报错解决方法 Java项目启动时报错解决方法 www.myexceptions.net  网友分享于:2013-08-07  浏览: ...

  7. vue项目启动时报错 Error: listen EADDRNOTAVAIL: address not available 192.168.0.102:9003

    vue项目启动时报错 Error: listen EADDRNOTAVAIL: address not available 192.168.0.102:9003 先说一下问题,我的vue项目本地启动时 ...

  8. 记一次SpringBoot操作redis报错 Error creating bean with name ‘dataSource‘ defined in class path resource解决方法

    代码块 以下为Springboot操作Redis一些简单的测试代码 maven依赖 <dependency><groupId>org.springframework.boot& ...

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

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

最新文章

  1. R语言使用str_locate函数和str_locate_all函数来定位特定字符串或者字符串模式在字符串中的位置:str_locate函数第一个位置、str_locate_all函数定位所有位置
  2. android 代码混淆 gson,Android RecyclerView和Gson混淆问题
  3. POJ 1611 -The Suspects (并查集)
  4. 信息学奥赛一本通 1227:Ride to Office | OpenJudge NOI 4.6 2404:Ride to Office
  5. applicationcontext and webapplicationcontext
  6. 西班牙人:武磊身体无恙 可以出场比赛
  7. html打印日志_Graylog(四)使用Log4j2发送日志到Graylog
  8. 用python画皇冠_GitHub - crown-prince/Python_PoC: 一款python编写的Web安全检测PoCEXP框架...
  9. 如何在Android上安装LineageOS
  10. php for iis express,iis10.0完整安装包
  11. [生产力]必备的全局文件搜索工具
  12. Logstash过滤器之Mutate过滤器详解
  13. 一个C#开发者用Java搭建Android框架的心路历程
  14. 仿小米天气预报未来几天趋势预报折线图
  15. 【UE5】自定义环形进度条、方形进度条
  16. 前端,值得收藏的那些网站
  17. Excel给证件照换底色,红、蓝、白底任你换,看完涨知识了
  18. jpa findById 不需sql但是 dao integer接口是需要的
  19. jQuery Pagination分页插件
  20. python情感分析语料库_利用Python实现中文情感极性分析

热门文章

  1. Win8 HP 1022n打印机不停打印
  2. 专题导读:新工科背景下的大数据人才培养及课程体系设计
  3. R语言绘制社会网络图
  4. Programmer Log8[反射]_19.09.02
  5. C语言实现简单工厂模式
  6. 7-23 圆形体体积计算器 (20分)
  7. c语言遍历文件内容_编程语言安全性排行榜:Ruby 最佳,C 语言漏洞最多
  8. matlab中b级路面功率谱密度仿真建模,汽车路面激励时域建模及仿真.pdf
  9. 澳洲移民 技术移民_我如何用Linux笔记本电脑欢迎移民家庭
  10. 练手小项目之新闻类(3)添加广告栏