SpringCloud
Joseph9499
这个作者很懒,什么都没留下…
展开
-
Hystrix超时时间设置
我现在用的环境是springboot:2.3.1、springCloud:Hoxtom.SR6,然后引入的是hystrix依赖是spring-cloud-starter-netflix-hystrix @HystrixCommand @RequestMapping("/getToOrderMemberAll") @HystrixCommand(commandProperties = {@HystrixProperty(name = "execution.isolation.thre..原创 2020-07-23 11:02:50 · 8577 阅读 · 1 评论 -
spring cloud config+bus实现配置中心的自动刷新
流程图: 根据此图我们可以看出利用Spring Cloud Bus做配置更新的步骤:1、提交代码触发post给config server发送bus/refresh2、config server接收到请求从git端更新配置并且发送给Spring Cloud Bus3、Spring Cloud bus接到消息并通知给其它客户端4、其它客户端接收到通知,请求Server端获取最新配置5、全部客户端均获取到最新的配置 上代码 我的环境: springboot:2.3.1...原创 2020-07-20 10:33:57 · 436 阅读 · 0 评论