2016-11-06 33 views
0

我創建了一個微服務,其中包含Spring雲版本Camden.SR2的以下依賴項。 Spring Boot 1.4.1。 http://localhost:8080/hystrix.stream沒有迴應。無法在Spring雲中獲取/hystrix.stream

如果我將Spring雲版本設爲Brixton.*(RELEASE,SR1,...),那麼在瀏覽器中只有ping:作爲回覆。

<dependencies> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-actuator</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework.cloud</groupId> 
     <artifactId>spring-cloud-starter-hystrix</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-data-rest</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-web</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-test</artifactId> 
     <scope>test</scope> 
    </dependency> 
</dependencies> 

application.properties

spring.application.name=sample-service 
server.port = 8080 

應用

@SpringBootApplication 
@EnableCircuitBreaker 
public class SampleApplication { 

    public static void main(String[] args) { 
     SpringApplication.run(SampleApplication.class, args); 
    } 
} 

回答

相關問題