无法启动 Spring 云 ZipKin 服务器

Unable to start the Spring Cloud ZipKin Server

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

BeanCreationException:无法创建活页夹工厂,在 class 路径

上找不到 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>

我的应用程序启动 class 如下所示。

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

非常感谢任何帮助。

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