编程语言
首页 > 编程语言> > cause java.lang.NoSuchMethodError: io.opentracing.ScopeManager.activeSpan()Lio/opentracing/Span;

cause java.lang.NoSuchMethodError: io.opentracing.ScopeManager.activeSpan()Lio/opentracing/Span;

作者:互联网

cause java.lang.NoSuchMethodError: io.opentracing.ScopeManager.activeSpan()Lio/opentracing/Span;

方案:

将引入的io.opentracing版本调到0.32.0

java.lang.NoClassDefFoundError: io/opentracing/Tracer

方案:

pom文件引入以下依赖:

 <dependency>
            <groupId>io.opentracing</groupId>
            <artifactId>opentracing-api</artifactId>
            <version>0.31.0</version>
        </dependency>
        <dependency>
            <groupId>io.opentracing</groupId>
            <artifactId>opentracing-noop</artifactId>
            <version>0.31.0</version>
        </dependency>

标签:lang,Span,Lio,io,java,opentracing
来源: https://blog.csdn.net/qq_40093255/article/details/110731622