详情参考https://blog.csdn.net/weixin_39080216/article/details/80784483博文。
在该博文的基础上我将两个服务的Hystrix.stream地址改为了actuator/hystrix.stream就可以成功访问TurbineDashboard了
两个服务的HystrixDashboard配置如下:
@Bean
public ServletRegistrationBean getServlet(){
HystrixMetricsStreamServlet streamServlet = new HystrixMetricsStreamServlet();
ServletRegistrationBean registrationBean = new ServletRegistrationBean(streamServlet);
registrationBean.setLoadOnStartup(1);
registrationBean.addUrlMappings("/actuator/hystrix.stream");
registrationBean.setName("HystrixMetricsStream");
return registrationBean;
}