一、准备操作
1、创建eureka注册中心,端口号为10000。
2、创建member服务提供者,端口为8000。
3、创建hytrix-order,服务消费者,端口号为:8011;
二、编写仪表盘配置
1、在之前博客中有ribbon-order的创建,只需要在pom中引入新的依赖
<!-- 引入 hystrix dashboard(仪表盘) --><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId></dependency>
2、在启动类中添加几个注解
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.cloud.client.SpringCl