前文的属性值,也可以通过如下配置yml进行设置:
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 2000
如果要对某个方法单独设置属性:
hystrix:
command:
getProductInfoList:
execution:
isolation:
thread:
timeoutInMilliseconds: 3000
最后
以上就是光亮天空最近收集整理的关于微服务学习19——使用配置项设置hystrix参数的全部内容,更多相关微服务学习19——使用配置项设置hystrix参数内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复