Turbine集群监控报Property or field 'default' cannot be found on object of type 'com.netflix.appinfo.InstanceInfo'

使用Turbine监控集群监控,在测试的时候出现了一些问题
http://localhost:9003/turbine.stream 没有获取到数据

http://localhost:9003/hystrix/monitor 监控界面一直loading

后台报Property or field 'default' cannot be found on object of type 'com.netflix.appinfo.InstanceInfo'

查找资料后发现是配置的问题

原配置

turbine:
  app-config: abcmsc-consumer-depart01,abcmsc-consumer-depart02
  cluster-name-expression: "default"
  combine-host-port: true

将cluster-name-expression: "default" 改成cluster-name-expression: new String("default")即可

turbine:
  app-config: abcmsc-consumer-depart01,abcmsc-consumer-depart02
  cluster-name-expression: new String("default")
  combine-host-port: true

看网上其他人的配置,"default"和new String("default")都有,估计是版本的问题

资料
错误:Property or field 'default' cannot be found on object of type 'com.netflix.appinfo.InstanceInfo'

posted @ 2020-11-13 20:29  rainginx  阅读(735)  评论(0)    收藏  举报