当前位置:网站首页>Hystrix dashboard cannot find hystrix Stream solution
Hystrix dashboard cannot find hystrix Stream solution
2022-07-02 07:49:00 【Deng DengZi 2021】
1、 problem
Hystrix Dashboard Unable to open hystrix.stream:
2、 resolvent
Inject... In the startup class ServletRegistrationBean:
package com.chaoyue.consumer;
import com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@EnableHystrixDashboard
public class ConsumerApplication {
public static void main(String[] args) {
SpringApplication.run(ConsumerApplication.class, args);
}
@Bean
public ServletRegistrationBean getServlet(){
HystrixMetricsStreamServlet streamServlet = new HystrixMetricsStreamServlet();
ServletRegistrationBean registrationBean = new ServletRegistrationBean(streamServlet);
registrationBean.setLoadOnStartup(1);
registrationBean.addUrlMappings("/hystrix.stream");
registrationBean.setName("HystrixMetricsStreamServlet");
return registrationBean;
}
}
边栏推荐
- Correction binoculaire
- Mmdetection model fine tuning
- How to turn on night mode on laptop
- Translation of the paper "written mathematical expression recognition with bidirectionally trained transformer"
- PHP returns the corresponding key value according to the value in the two-dimensional array
- 【Paper Reading】
- 常见CNN网络创新点
- 【TCDCN】《Facial landmark detection by deep multi-task learning》
- 【Cascade FPD】《Deep Convolutional Network Cascade for Facial Point Detection》
- Drawing mechanism of view (3)
猜你喜欢
[binocular vision] binocular correction
Semi supervised mixpatch
open3d学习笔记三【采样与体素化】
【Sparse-to-Dense】《Sparse-to-Dense:Depth Prediction from Sparse Depth Samples and a Single Image》
图片数据爬取工具Image-Downloader的安装和使用
Open3D学习笔记一【初窥门径,文件读取】
【Random Erasing】《Random Erasing Data Augmentation》
Faster-ILOD、maskrcnn_ Benchmark training coco data set and problem summary
【AutoAugment】《AutoAugment:Learning Augmentation Policies from Data》
Using MATLAB to realize: Jacobi, Gauss Seidel iteration
随机推荐
Record of problems in the construction process of IOD and detectron2
Thesis writing tip2
传统目标检测笔记1__ Viola Jones
图片数据爬取工具Image-Downloader的安装和使用
PointNet理解(PointNet实现第4步)
Using MATLAB to realize: Jacobi, Gauss Seidel iteration
Memory model of program
MoCO ——Momentum Contrast for Unsupervised Visual Representation Learning
【Mixed Pooling】《Mixed Pooling for Convolutional Neural Networks》
latex公式正体和斜体
Win10 solves the problem that Internet Explorer cannot be installed
Mmdetection trains its own data set -- export coco format of cvat annotation file and related operations
【BiSeNet】《BiSeNet:Bilateral Segmentation Network for Real-time Semantic Segmentation》
【MobileNet V3】《Searching for MobileNetV3》
Common CNN network innovations
Mmdetection model fine tuning
TimeCLR: A self-supervised contrastive learning framework for univariate time series representation
Traditional target detection notes 1__ Viola Jones
Calculate the total in the tree structure data in PHP
How to turn on night mode on laptop