博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SpringCloud (Finchley.SR2)整合hystrix dashboard 提示Unable to connect to Command Metric Stream.
阅读量:4042 次
发布时间:2019-05-24

本文共 608 字,大约阅读时间需要 2 分钟。

SpringCloud(Finchley.SR2)整合hystrix dashboard 提示Unable to connect to Command Metric Stream.

springcloud(Finchley.SR2)需要使用下面地址

 而不是

 

 

 

 

 

 搜了很多解决方案,突然看到这个博客

将下面的代码配置加到配置中

@Bean    public ServletRegistrationBean getServlet(){        HystrixMetricsStreamServlet streamServlet = new HystrixMetricsStreamServlet();        ServletRegistrationBean registrationBean = new ServletRegistrationBean(streamServlet);        registrationBean.setLoadOnStartup(1);        registrationBean.addUrlMappings("/actuator/hystrix.stream");        registrationBean.setName("HystrixMetricsStreamServlet");        return registrationBean;    }

 

转载地址:http://dhmdi.baihongyu.com/

你可能感兴趣的文章
FaceBook 代码中重要备份&nbs…
查看>>
图片处理之 截取图片
查看>>
MPMoviePlayerController使用,以…
查看>>
iSecret 官方资料
查看>>
iSecret 1.1 正在审核中
查看>>
IOS开发的开源库
查看>>
IOS开发的开源库
查看>>
iSecret 1.1 正式发布 Congratulat…
查看>>
正则表达式语法
查看>>
SQL语句求总数、求平均数、降序排…
查看>>
计算字符串中各个字符出现的次数
查看>>
双层状态栏问题 跟踪状态栏Fr…
查看>>
CGRectInset、CGRectOffset…
查看>>
总结Objective-C中CGGeometry几何…
查看>>
CPM,CPC,CPL,CPS广告术语大全
查看>>
链表反转 58面试“留念”
查看>>
我的博客今天0岁200天了,我领取了…
查看>>
layoutSubviews 和 layoutIf…
查看>>
关于request.getRealPath(…
查看>>
《转》搞定学习《unix环境高级编程…
查看>>