2016-11-20 17 views
1

Spring Cloud ZipKin Serverを起動できません。以下の例外があります。Spring Cloud ZipKin Serverを起動できません

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); 
    } 
} 

ご協力いただきありがとうございます。

答えて

4

Spring Cloud Zipkin Streamは、下にSpring Cloud Streamを使用しています。スパンをZipkinに送る方法を指定する必要があります。バインダーが必要です。可能な結合剤の1つは、RabbitMQ結合剤である。これをチェックアウト:https://github.com/spring-cloud-samples/sleuth-documentation-apps/blob/master/zipkin-server/build.gradle#L6

+0

ありがとう、私はRabbitMQを使用し、それは働いた。 –

+0

甘い - これを答えてマークしていただけますか? –

関連する問題