首页 > 编程语言 > 详细

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

时间:2019-10-04 11:57:29      阅读:110      评论:0      收藏:0      [点我收藏+]

 

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

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

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

 

打完收工!

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

原文:https://www.cnblogs.com/wjx6270/p/11621725.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!