2016-12-23 9 views
2

Spring Boot Admin Applicationを使用しており、Hystrix UI Moduleのインストールに問題があります。私はprevoiusのリンクで見ることができるように、インストール手順に従った!Hystrix:コマンドメトリックストリームに接続できません

ここにあなたが私のpom.xmlファイルを参照することができます

<?xml version="1.0" encoding="UTF-8"?> 
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 
    <modelVersion>4.0.0</modelVersion> 

    <groupId>poc.spring</groupId> 
    <artifactId>wdp-spring-boot-admin</artifactId> 
    <version>0.0.1-SNAPSHOT</version> 
    <packaging>jar</packaging> 

    <name>wdp-spring-boot-admin</name> 
    <description>Spring Boot Admin Application</description> 

    <parent> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-parent</artifactId> 
     <version>1.4.2.RELEASE</version> 
     <relativePath /> <!-- lookup parent from repository --> 
    </parent> 

    <properties> 
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 
     <java.version>1.8</java.version> 
    </properties> 

    <dependencies> 
     <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>de.codecentric</groupId> 
      <artifactId>spring-boot-admin-server</artifactId> 
      <version>1.4.4</version> 
     </dependency> 
     <dependency> 
      <groupId>de.codecentric</groupId> 
      <artifactId>spring-boot-admin-server-ui</artifactId> 
      <version>1.4.4</version> 
     </dependency> 
     <dependency> 
      <groupId>de.codecentric</groupId> 
      <artifactId>spring-boot-admin-server-ui-hystrix</artifactId> 
      <version>1.4.4</version> 
     </dependency> 

    </dependencies> 

    <build> 
     <plugins> 
      <plugin> 
       <groupId>org.springframework.boot</groupId> 
       <artifactId>spring-boot-maven-plugin</artifactId> 
      </plugin> 
     </plugins> 
    </build> 


</project> 

そして、ここに私のapplication.propertiesファイル:

server.port=8888 
spring.boot.admin.routes.endpoints=env,metrics,trace,dump,jolokia,info,configprops,trace,logfile,refresh,flyway,liquibase,heapdump,hystrix.stream 

私はHystrix UIを開こうとすると、私は次のように取得しますエラーメッセージ:

事前にの

http://localhost:8888/#/applications/e6400bbe/hystrix

enter image description here

おかげで

答えて

0

はあなたのpom.xmlに以下を追加必要

<dependency> 
     <groupId>org.springframework.cloud</groupId> 
     <artifactId>spring-cloud-starter-hystrix</artifactId> 
    </dependency> 
関連する問題