Spring boot 无法在Spring启动应用程序中自动连接brave.Tracer

Spring boot 无法在Spring启动应用程序中自动连接brave.Tracer,spring-boot,zipkin,Spring Boot,Zipkin,我正在开发Spring启动应用程序,并尝试自动连接跟踪对象以获取traceId,但它引发了以下异常。为什么 Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'brave.Tracer' available: expected at least 1 bean which qualifies as autowire candidate. Dep

我正在开发Spring启动应用程序,并尝试自动连接跟踪对象以获取traceId,但它引发了以下异常。为什么

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'brave.Tracer' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

我在很多项目中都使用了跟踪器,而且它总是毫无问题地工作

在这种情况下,Spring引导容器无法解析自动连线接口的实现。请使用spring原型注释来注释您的实现类

例如,我们为dao类提供@Reposiory,为服务类提供@Service,为通用组件提供@Component。这会解决你的问题。如果您仍然面临任何问题,请共享您的代码片段


我们无法通过看到此错误来判断确切原因,因此请向我们展示您迄今为止所做的工作。我在从Spring Cloud Greenwich.SR2升级到Hoxton.SR1时遇到了相同的问题(这似乎使升级从5.6.5升级到5.9.0)。