gpt4 book ai didi

spring-cloud - Spring Cloud - hystrix-dashboard 不工作?

转载 作者:行者123 更新时间:2023-12-04 16:02:43 25 4
gpt4 key购买 nike

Spring Cloud Hystrix 断路器 模式示例。我在采用 https://howtodoinjava.com/spring/spring-cloud/spring-hystrix-circuit-breaker-tutorial/ 的代码中添加了以下依赖项 Spring Boot Starter父版本为1.5.13.BUILD-SNAPSHOT

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId>
</dependency>

当我启动http://localhost:9098/hystrix ,什么也没有。

能否请您指导如何修复它?

enter image description here

代码如下:

@SpringBootApplication
@EnableHystrixDashboard
@EnableCircuitBreaker
public class SpringHystrixSchoolServiceApplication {

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

最佳答案

由于你使用的是spring boot 1.3,你需要使用http://localhost:9098/hystrix.html

从 Spring boot 2.x hystrix URL 移动到 http://localhost:9098/hystrix

关于spring-cloud - Spring Cloud - hystrix-dashboard 不工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50007320/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com