关于springcloud hystrix 执行 hystrix.stream 跳转失败的问题

 

经过观看网友的总结:应该时版本的问题。某些版本没有对/hystrix.stream进行配置

所以解决方案(网友答案):

需要配置类配置下面
@Bean
public ServletRegistrationBean hystrixMetricsStreamServlet() {
ServletRegistrationBean registration = new ServletRegistrationBean(new HystrixMetricsStreamServlet());
registration.addUrlMappings("/hystrix.stream");
return registration;
}

 

打完收工!

posted @ 2019-10-04 11:30  IT小白6270  阅读(331)  评论(0编辑  收藏  举报