1. 程式人生 > >使用Netflix Hystrix元件時 訪問hystrix.stream端點404錯誤問題

使用Netflix Hystrix元件時 訪問hystrix.stream端點404錯誤問題

1、引導類中加上註解:@EnableCircuitBreaker或@EnableHystrix

2、加入依賴:

<dependency>

    <groupId>org.springframework.boot</groupId>

    <artifactId>spring-boot-starter-actuator</artifactId>

</dependency>

再次訪問:hystrix.steam如果發現螢幕上只有ping:

只需要訪問應用程式中一個有效的端點即可