我是靠谱客的博主 酷炫长颈鹿,这篇文章主要介绍2021-05-27 Hystrix Dashboard2.2.8踩坑记录,现在分享给大家,希望可以做个参考。

  • Hystrix Dashboard版本  

2.2.8.RELEASE

  • 遇到的问题

注意一下控制台,这里报的是404的错误!

当时客户端访问是没有问题的,但是却一直不能加载,然后看到了一片文章,这篇文章的评论,让我有了启发

https://blog.csdn.net/ddxd0406/article/details/79643059?utm_medium=distribute.pc_relevant_t0.none-task-blog-2~default~BlogCommendFromMachineLearnPai2~default-1.control&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2~default~BlogCommendFromMachineLearnPai2~default-1.control

因为这篇文章时间比较长了,我就不做过多介绍,大家可以去看看

  • 我踩到的坑

客户端没有暴露端点,引起的无法加载,所以Dashboard控制台报了404的错误

因为是确实解决了问题,所以说我现在的配制应该是没有问题的,所以记录一下,给大家分享一下

  • Hystrix Dashboard配制

spring:
  application:
    name: hystrix-dashboard
server:
  port: 4001
hystrix:
  dashboard:
    proxy-stream-allow-list: "localhost"
management:
  endpoints:
    web:
      exposure:
        include: "*"

  • Ribbon Client配制

server:
  port: 3002
spring:
  application:
    name: ribbon-client
eureka:
  client:
    service-url:
      defaultZone: http://peer1:1001/eureka/,http://peer2:1002/eureka/,http://peer3:1003/eureka/
  instance:
    hostname: localhost
    prefer-ip-address: true
    instance-id: localhost:3002
management:
  endpoints:
    web:
      exposure:
        include: hystrix.stream,info,health
        

  • 最后在附上一张成功的截图

耶!撒花、撒花、撒花 .......

 

 

 

最后

以上就是酷炫长颈鹿最近收集整理的关于2021-05-27 Hystrix Dashboard2.2.8踩坑记录的全部内容,更多相关2021-05-27内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(131)

评论列表共有 0 条评论

立即
投稿
返回
顶部