随笔分类 -  Spring Cloud

摘要:我们在使用Alibaba Sentinel时一般都是在pom文件中引入spring-cloud-starter-alibaba-sentinel,这个工程会带来非常多的jar包,这里面有些是和可视化监控有关的,有些是和webflux有关的,等等。如果我们并不需要可视化监控,不涉及到webflux,那 阅读全文
posted @ 2020-12-17 22:33 ralgo 阅读(344) 评论(0) 推荐(0)
摘要:1、搭建Dashboard 下载jar包 https://github.com/alibaba/Sentinel/releases/download/v1.8.0/sentinel-dashboard-1.8.0.jar 启动:java -jar sentinel-dashboard-1.8.0.j 阅读全文
posted @ 2020-12-12 15:32 ralgo 阅读(456) 评论(0) 推荐(0)
摘要:上一篇文章讲述如何搭建一个中心配置服务器,本编继续这个主题来实现一个从中心服务器拉取配置的服务实例。 1、设置好pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/X 阅读全文
posted @ 2020-12-09 20:19 ralgo 阅读(118) 评论(0) 推荐(0)
摘要:大型的系统里面有可能有上百种微服务,假设每种服务平均有10个实例,那么全部实例的数量就是1000个了,这么多实例管理起配置来一定会让人崩溃的。所以Spring Cloud提出了集中式的配置存储方案叫Spring Cloud Config。这个方案里有一个提供REST服务器的配置服务器,系统内所有实例 阅读全文
posted @ 2020-12-09 16:56 ralgo 阅读(157) 评论(0) 推荐(0)
摘要:Spring Cloud与Spring Boot兼容版本对照表 Spring Cloud Version Spring Boot Version 2020.0.x aka Ilford 2.4.x Hoxton 2.2.x, 2.3.x (Starting with SR5) Greenwich 2 阅读全文
posted @ 2020-12-08 20:14 ralgo 阅读(1011) 评论(0) 推荐(0)
摘要:版本 Feign的版本是10.11 一个例子 interface GitHub { @RequestLine("GET /repos/{owner}/{repo}/contributors") List<Contributor> contributors(@Param("owner") String 阅读全文
posted @ 2020-11-26 21:18 ralgo 阅读(692) 评论(0) 推荐(0)
摘要:Feign的Http库 Feign是一个声明式的http客户端,它定义了一些接口来帮助用户更加方便地开发Http服务。Feign并没有重新开发底层http库,而是重用了一些车轮,比如它默认是使用java.net.HttpURLConnection,除了默认的http库外它还支持:Apache的Htt 阅读全文
posted @ 2020-11-23 16:34 ralgo 阅读(235) 评论(0) 推荐(0)