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

时间:2020-11-19 12:14:31   收藏:0   阅读:16

使用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‘

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!