标签:prope string property express com default ann http -name
使用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‘
标签:prope string property express com default ann http -name
原文地址:https://www.cnblogs.com/rainginx/p/13971216.html