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.

 5.RocketMQ在windows环境下的安装

6.Java集合中List,Set以及Map等集合体系详解(史上最全)

posted @ 2021-05-08 17:40  皮军旗  阅读(82)  评论(0)    收藏  举报