记录IDEA报错 :nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException

作者在尝试将SpringCloudSleuth整合到Zipkin中,使用MySql存储链路数据时遇到连接问题。主要原因是未创建对应的数据库。解决方法是新建名为zipkin的数据库并确保连接配置正确。
摘要由CSDN通过智能技术生成

这是我在学习在Spring Cloud Sleuth整合Zipkin在MySql数据库中存储链路数据时遇到的问题,

主要报错:

Unable to start web server; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'zipkin2.server.internal.ZipkinServerConfiguration': Unsatisfied dependency expressed through field 'httpCollector'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'zipkin2.server.internal.ZipkinHttpCollector': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'storage' defined in class path resource 

主要原因:

原来的代码是对数据库的表进行信息存储,但是没有新建相对应的数据库导致zipkin和数据库无法正常连接而报错

解决方法:

mysql新建数据库:zipkin

问题解决。

遇到这样的报错一般是查看数据库连接是否正常,用户名、密码等有没有按照电脑自带的mysql都要仔细检查

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值