Spring Cloud - Hystrix-панель не работает? - PullRequest
0 голосов
/ 24 апреля 2018

Автоматический выключатель 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);
    }
}

1 Ответ

0 голосов
/ 04 июня 2019

Поскольку вы используете пружинную загрузку 1.3, вам нужно использовать http://localhost:9098/hystrix.html

Из Spring boot 2.x Hystrix URL перейти к http://localhost:9098/hystrix

...