springboot2.0下hystrix dashboard Unable to connect to Command Metric Stream解决办法

在服务端加上,就ok了

@Bean

public ServletRegistrationBeangetServlet() {

HystrixMetricsStreamServlet streamServlet =new HystrixMetricsStreamServlet();

    ServletRegistrationBean registrationBean =new ServletRegistrationBean(streamServlet);

    registrationBean.setLoadOnStartup(1);

    registrationBean.addUrlMappings("/hystrix.stream");

    registrationBean.setName("HystrixMetricsStreamServlet");

    return registrationBean;

}

你可能感兴趣的:(springboot2.0下hystrix dashboard Unable to connect to Command Metric Stream解决办法)