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

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

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

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

打完收工!

猜你喜欢

转载自www.cnblogs.com/wjx6270/p/11621725.html
今日推荐