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

	<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>
posted @ 2018-08-22 21:17  系统攻城狮  阅读(7559)  评论(0编辑  收藏  举报