Hystrix监控服务整合完成

This commit is contained in:
2023-08-15 21:38:05 +08:00
parent 8d136d0f68
commit ea08aaa2a9
11 changed files with 113 additions and 10 deletions

View File

@@ -0,0 +1,20 @@
package com.test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
/**
* ClassName: HystrixApplication
* Package: com.test
*
* @author yovinchen
* @Create 2023/8/15 21:19
*/
@SpringBootApplication
@EnableHystrixDashboard
public class HystrixDashBoardApplication {
public static void main(String[] args) {
SpringApplication.run(HystrixDashBoardApplication.class, args);
}
}

View File

@@ -0,0 +1,6 @@
server:
port: 8900
hystrix:
dashboard:
# 将localhost添加到白名单默认是不允许的
proxy-stream-allow-list: "localhost"