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

Posted wjx6270

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于springcloud hystrix 执行 hystrix.stream 跳转失败的问题相关的知识,希望对你有一定的参考价值。

 

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

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

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

 

打完收工!

以上是关于关于springcloud hystrix 执行 hystrix.stream 跳转失败的问题的主要内容,如果未能解决你的问题,请参考以下文章