Error creating bean with name ‘braveHttpServerHandler‘ defined in class path

博客内容涉及微服务启动时遇到的错误,包括无法配置DataSource、Eureka注册中心未指定及RabbitMQ连接问题。解决方案包括:为配置中心添加数据库配置,确保数据库驱动正确,激活所需配置文件,并解决Eureka服务器连接问题,同时检查并启动RabbitMQ服务。
摘要由CSDN通过智能技术生成

启动微服务报错

目前解决办法:先注释掉链路追踪的依赖,后面需要再加上

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-12-05 10:05:07.355 ERROR 608 --- [  restartedMain] o.s.b.d.LoggingFailureAnalysisReporter   : 

Description:

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class


Action:

Consider the following:
    If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
    If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

解决办法:在配置中心添加数据库或注释掉数据库依赖(这里添加数据库),如果配置中心有数据库,检查数据中心是否加注解

spring:
  application:
    name: update-service
  cloud:
    config:
      uri: http://localhost:9007
      profile: default
      label: master
  config:
    import: optional:configserver:http://localhost:9007
  datasource:
    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql://localhost:3306/bill-manager?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
    username: root
    password: 123456

com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server

未指定eureka注册中心,在本地或仓库application.yml进行配置

Attempting to connect to: [127.0.0.1:5672]

未打开rabbitmq控制台

解决方法:rabbitmq安装全过程[含安装包,可直接用]_love_yr的博客-CSDN博客

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

塔◎

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值