zipkin启动报错(Caused by: java.lang.ClassNotFoundException: zipkin.Component)的解决方法

使用 ziplin 依赖: 

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-sleuth-zipkin</artifactId>
        </dependency>

应用启动报错:Caused by: java.lang.ClassNotFoundException: zipkin.Component

 

解决方法:指定更高版本的 spring cloud

1
2
3
4
5
6
7
8
9
10
11
12
<dependencyManagement>
    <dependencies>
        <!--org.springframework.cloud-->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-dependencies</artifactId>
            <version>Edgware.SR3</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>