springcloud
倾旎
这个作者很懒,什么都没留下…
展开
-
springcloud config 分布式配置
服务端原创 2021-06-25 16:32:21 · 52 阅读 · 0 评论 -
gateway网关的使用
导入配置: <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-gateway</artifactId> <version>3.0.3</version> </dependency>原创 2021-06-20 14:52:30 · 106 阅读 · 0 评论 -
s not in the allowed list of proxy host names. If it should be allowed add it to hystrix.dashboard.
解决:proxyStreamAllowList这个属性在【HystrixDashboardProperties.java】中,而在【HystrixDashboardConfiguration.java】的ProxyStreamServlet#doGet中会用到它,也就是log报错的地方。关键就在isAllowedToProxy,发现它会取出proxyStreamAllowList元素和host匹配。如果我们没有设置proxyStreamAllowList,那么proxyStreamAllowLi..转载 2021-06-17 23:55:27 · 897 阅读 · 0 评论 -
Hystrixr熔断,降级,Feign无法使用feign: hystrix: enabled: true的问题,Unable to connect to Command Metric Stream.
服务熔断原创 2021-06-17 20:21:45 · 649 阅读 · 0 评论 -
ribbon
ribbon是什么?. Spring Cloud Ribbon是基于Netflix Ribbon实现的一套==客户端负载均衡的工具·简单的说,Ribbon是Netflix发布的开源项目,主要功能是提供客户端的软件负载均衡算法,将NetFlix的中间层服务连接在一起。Ribbon的客户端组件提供一系列完整的配置项如:连接超时、重试等等。简单的说,就是在配置文件中列出LoadBalancer(简称LB:负载均衡)后面所有的机器,Ribbon会自动的帮助你基于某种规则(如简单轮询,随机连接等等)去连接这些机器原创 2021-06-16 20:38:50 · 54 阅读 · 0 评论 -
Eureka
EurekaEureka服务注册与发现:什么是eureka:心跳机制:如果没有心跳了,就从注册表中把服务节点移除掉server:port: 7001Eurekaeureka:instance:hostname: localhostclient:register-with-eureka: false #是否想eureak注册中心注册自己fetch-registry: false #fetch-registry如果为false,则表示自己为注册中心service-url: # 监控原创 2021-06-15 12:24:11 · 59 阅读 · 0 评论 -
SpringCloud理论以及依赖要求
三层架构+MVC微服务微服务与微服务架构模式微服务优缺点微服务技术有哪些?(重点)这里的技术并不是全部建议去看官网为什么选择springCloud作为微服务架构各微服务框架对比springcloud 概述springcloud和springboot关系网站架构图Dubbo和SpringCloud对比:Spring cloud能干什么:spring cloud版本号:参考书:https:llspringcloud.cc/spring-clo原创 2021-06-14 10:53:46 · 119 阅读 · 0 评论