我在Spring引导应用程序上工作,我试图自动连接Tracer对象以获取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)}
我在许多项目中都使用了Tracer,并且它始终可以正常工作!