我正在嘗試使用Netflix eureka服務發現和hystrix斷路器構建簡單的Spring Cloud應用程序。斷路器服務:@EnableCircuitBreaker@SpringBootApplication@EnableEurekaClientpublic class PluralsightEurekaFastpassConsoleApplication { public static void main(String[] args) { SpringApplication.run(PluralsightEurekaFastpassConsoleApplication.class, args); }}pom.xml<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.3.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> <spring-cloud.version>Finchley.RELEASE</spring-cloud.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>hystrix儀表板 控制臺日志2018-07-04 20:15:25.051信息17516-[nio-8088-exec-1] ashboardConfiguration $ ProxyStreamServlet:代理打開到以下地址的連接:http:// localhost:8088 / actuator / hystrix.stream 2018-07- 04 20:15:25.052信息17516-[nio-8088-exec-6] ashboardConfiguration $ ProxyStreamServlet:代理打開到以下地址的連接:http:// localhost:8088 / actuator / hystrix.stream 2018-07-04 20:15 :25.058 WARN 17516 --- [nio-8088-exec-1] ashboardConfiguration $ ProxyStreamServlet:無法打開與http:// localhost:8088 / actuator / hystrix.stream的連接:404:HTTP / 1.1 404 2018-07-04 20 :15:25.058 WARN 17516 --- [nio-8088-exec-6] ashboardConfiguration $ ProxyStreamServlet:無法打開與http:// localhost:8088 / actuator / hystrix.stream的連接 :404:HTTP / 1.1 404我嘗試 無法使用Spring Cloud連接到Hystrix儀表板的Command Metric Stream但是問題仍然存在。
添加回答
舉報
0/150
提交
取消