鍍金池/ 問答/Java/ cannot resolve zipkin

cannot resolve zipkin

RT.在pom引入了zipkin server,但是根本無法引用啊。。??偸菢思t

<dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>io.zipkin.java</groupId>
            <artifactId>zipkin-autoconfigure-ui</artifactId>
            <scope>runtime</scope>
        </dependency>

        <dependency>
            <groupId>io.zipkin.java</groupId>
            <artifactId>zipkin-server</artifactId>
        </dependency>

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

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

引用文件:

package com.zipkinsample.zipkinsample;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import zipkin.server.EnableZipkinServer;

@SpringBootApplication

@EnableZipkinServer
public class ZipkinsampleApplication {

    public static void main(String[] args) {

        SpringApplication.run(ZipkinsampleApplication.class, args);
    }
}

總是顯示cannot resolve zipkin....

回答
編輯回答
九年囚

查了最新的github,原作者提示,已經(jīng)不支持這種customer server啟動方式了。

2018年1月10日 06:30