Skip to main content
 首页 » 编程设计

SpringCloud搭建Turbine时,报错误:Property or field 'default' cannot be found on object of type 'com.netflix.appinfo.InstanceInfo'

2022年07月18日30开发

Spring Boot + Eureka Server + Hystrix with Turbine: empty turbine.stream 配置的时候遇到了问题:

Property or field 'default' cannot be found on object of type 'com.netflix.appinfo.InstanceInfo' - m

原配置:

turbine:
app-config: eureka-consumer-ribbon-hystrix
cluster-name-expression: “default”
combine-host-port: true

解决方案

turbine:
app-config: eureka-consumer-ribbon-hystrix
cluster-name-expression: new String('default')
combine-host-port: true


本文参考链接:https://www.cnblogs.com/maohuidong/p/9858081.html