无法启动Spring Cloud ZipKin服务器

时间:2016-11-20 07:26:07

标签: zipkin spring-cloud-sleuth

我无法启动Spring Cloud ZipKin服务器,它提供了下面提到的异常。

BeanCreationException:无法创建绑定工厂,在类路径中找不到META-INF/spring.binders资源

以下是我的maven依赖项 -

<dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-sleuth-zipkin</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-sleuth-zipkin-stream</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
</dependencies>

此外,我的应用程序启动类如下所示。

@SpringBootApplication
@EnableZipkinStreamServer
public class ZipkinApplication {
    public static void main(String[] args) {
            SpringApplication.run(ZipkinApplication.class, args);
    }
}

非常感谢任何帮助。

1 个答案:

答案 0 :(得分:4)

Spring Cloud Zipkin Stream正在使用Spring Cloud Stream。您需要提供如何将跨度发送到Zipkin - 因此您需要一个活页夹。一种可能的粘合剂是RabbitMQ粘合剂。看看这个:https://github.com/spring-cloud-samples/sleuth-documentation-apps/blob/master/zipkin-server/build.gradle#L6

相关问题