当前位置:网站首页>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;
}
}
边栏推荐
- label propagation 标签传播
- Conversion of numerical amount into capital figures in PHP
- How do vision transformer work?【论文解读】
- 【雙目視覺】雙目矯正
- [in depth learning series (8)]: principles of transform and actual combat
- open3d学习笔记五【RGBD融合】
- Drawing mechanism of view (II)
- Determine whether the version number is continuous in PHP
- 【TCDCN】《Facial landmark detection by deep multi-task learning》
- Open3D学习笔记一【初窥门径,文件读取】
猜你喜欢

win10+vs2017+denseflow编译

ABM thesis translation

What if a new window always pops up when opening a folder on a laptop

【Wing Loss】《Wing Loss for Robust Facial Landmark Localisation with Convolutional Neural Networks》

Pointnet understanding (step 4 of pointnet Implementation)

Execution of procedures

【DIoU】《Distance-IoU Loss:Faster and Better Learning for Bounding Box Regression》

【多模态】CLIP模型

【AutoAugment】《AutoAugment:Learning Augmentation Policies from Data》

【Sparse-to-Dense】《Sparse-to-Dense:Depth Prediction from Sparse Depth Samples and a Single Image》
随机推荐
【Mixed Pooling】《Mixed Pooling for Convolutional Neural Networks》
Faster-ILOD、maskrcnn_ Benchmark trains its own VOC data set and problem summary
Using MATLAB to realize: power method, inverse power method (origin displacement)
【Cascade FPD】《Deep Convolutional Network Cascade for Facial Point Detection》
Use matlab to realize: chord cut method, dichotomy, CG method, find zero point and solve equation
TimeCLR: A self-supervised contrastive learning framework for univariate time series representation
常见的机器学习相关评价指标
【Cutout】《Improved Regularization of Convolutional Neural Networks with Cutout》
论文写作tip2
Implement interface Iterable & lt; T>
Conversion of numerical amount into capital figures in PHP
【Sparse-to-Dense】《Sparse-to-Dense:Depth Prediction from Sparse Depth Samples and a Single Image》
Win10+vs2017+denseflow compilation
Use Baidu network disk to upload data to the server
Thesis writing tip2
【MagNet】《Progressive Semantic Segmentation》
ModuleNotFoundError: No module named ‘pytest‘
A slide with two tables will help you quickly understand the target detection
【TCDCN】《Facial landmark detection by deep multi-task learning》
Convert timestamp into milliseconds and format time in PHP