# SpringCloud **Repository Path**: zzf98/SpringCloud ## Basic Information - **Project Name**: SpringCloud - **Description**: 这是一个SpringCloud项目会长久维护(SpringCloud+SpringBoot2.0) 博客地址:https://blog.csdn.net/qq_37598011/column/info/27879 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 16 - **Forks**: 1 - **Created**: 2019-03-01 - **Last Updated**: 2021-04-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SpringCloud 2.x #### 介绍 这是一个SpringCloud 2.x项目会长久维护(SpringCloud+SpringBoot2.0) 该SpringCloud整体采用: - Eureka(服务注册中心) - Feign(声明式服务调用) - Hystrix(服务熔断以及服务降级) - Dashboard(服务监控) - Gatway(网关) - Sleuth+Zipkin(链路追踪) - logback(日志) - SpringBoot 2.x - SpringCloud Finchley.SR1 #### 安装教程 1. 在根目录直接mvn clean install ![输入图片说明](https://images.gitee.com/uploads/images/2019/0314/212044_8d23278a_2010234.png "屏幕截图.png") 2. 首先启动RegistryApplication做服务注册中心 3. 启动服务提供者ProviderApplication(数据库文件在根目录下) 4. 启动服务消费者ConsumerApplication 5. 启动监控中心和监控集群:DashboardApplication+DashboardClusterApplication 6. 启动网关GatewayApplication 7. 启动链路追踪ZipkinApplication 8. 测试服务:http://localhost:8888/z/gateway/feign/test ![输入图片说明](https://images.gitee.com/uploads/images/2019/0314/212154_0fb0a1f5_2010234.png "屏幕截图.png") 其中日志也实现了链路追踪方便线上调试: ![输入图片说明](https://images.gitee.com/uploads/images/2019/0314/212721_a4bf2423_2010234.png "屏幕截图.png") 如果要启动集群请参考我的这篇博客:https://blog.csdn.net/qq_37598011/article/details/82315482 SpringCloud教程地址:https://blog.csdn.net/qq_37598011/column/info/27879 博客地址:https://blog.csdn.net/qq_37598011