目录
第一章 – Eureka服务注册中心
第二章 – Client客户端
第三章 – Zuul路由转发
第四章 – Feign负载均衡
第五章 – Turbine流量收集
第六章 – Dashboard仪表盘
第七章 – SpringAdmin 管理员
eureka地址: http://localhost:8761/
仪表盘地址: http://localhost:8753/hystrix
仪表盘监控流量地址: http://localhost:8754/turbine.stream
- springboot2.0之后,springcloud的用法也发生了一些变化,总体上变化量不是很大,在springboot1.0的时候已经部署过springcloud,此次尝试主要是为了看看内容上有什么变化,功能上有没有增加或者在展示端是否更加的美观。(好像没什么变动)
编辑该文章的时候,springboot最新版本2.1.5,但springcloud暂时只支持到2.0.x,2.1以上会提示不支持的版本。 - 在使用springcloud的时候,我们需要在pom中加入以下配置,保证maven在下载的时候不会出错
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Finchley.BUILD-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<repositories>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/libs-snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/libs-milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>spring-releases</id>
<name>Spring Releases</name>
<url>https://repo.spring.io/libs-release</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/libs-snapshot-local</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/libs-milestone-local</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
源码
github上的项目地址