springcloud Greenwich.SR2结合spring-boot 2.1.7.RELEASE整合zipkin链路服务启动报错解决记录

解决Zipkin与Spring Cloud集成冲突
本文介绍了解决在Spring Cloud微服务架构中集成Zipkin链路追踪服务时遇到的bean定义冲突问题,通过配置允许bean定义覆盖,成功启用了Zipkin服务,并分享了完整的配置代码。

最新使用springcloud搭建微服务架构整合zipkin链路服务,但是启动后一直报错,报错

The bean 'characterEncodingFilter', defined in class path resource
##zipkin/autoconfigure/ui/ZipkinUiAutoConfiguration.class, could not be registered.
#A bean with that name has already been defined in class path resource
#[org/springframework/boot/autoconfigure/web/servlet/HttpEncodingAutoConfiguration.class] and overriding is disabled.Action:

一开始以为版本有问题,搞了半天,加入配置就完美解决这个问题了

server:
  port: 8001 # ZipKin链路追踪服务提供方
# 指定当前eureka客户端的注册地址,
eureka:
  serverPort: 8000
  instance:
    hostname: localhost
  client:
    service-url:
      defaultZone: http://${eureka.instance.hostname}:${eureka.serverPort}/eureka/
#当前服务名称-链路服务器
spring:
  application:
    name: spring_cloud_zipkin_server
   #解决The bean 'characterEncodingFilter', defined in class path resource
  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值