springCloud记录
1.熔断:在一段时间内,请求次数达到某值并且失败率(报错率)达到设定值后,开启跳闸,后续请求失败,可以设置跳闸后几秒再有请求可以访问一次.
2.熔断监控Hystrix Dashboard和Turbine 链接
3.Hystrix的Fallback(降级)特性:我们可以实现一个fallback方法, 当请求后端服务出现异常的时候, 可以使用fallback方法返回的值. fallback方法的返回值一般是设置的默认值或者来自缓存.
4.gateway导入依赖时一定不要添加web的依赖 否则报错
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of method modifyRequestBodyGatewayFilterFactory in org.springframework.cloud.gateway.config.GatewayAutoConfiguration required a bean of type 'org.springframework.http.codec.ServerCodecConfigurer' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.http.codec.ServerCodecConfigurer' in your configuration.
本文来自博客园,作者:皮军旗,转载请注明原文链接:https://www.cnblogs.com/pijunqi/p/14743549.html

浙公网安备 33010602011771号