Spring Cloud相关DEMO,包含zuul\eureka\swagger2\feign\hystrix\spring cloud config\spring data rest等。
GitHub:https://github.com/luoml/spring-cloud-example.git
项目基于Spring Boot 1.5.2.RELEASE,Spring Cloud Dalston.RELEASE,各模块简要说明如下:
project | desc |
---|---|
config-repo | Git远程配置仓库 |
config-server | 配置服务器,从config-repo拉取配置清单 |
eureka-server | Eureka Server 注册中心 |
eureka-server-ha | Eureka Server 双节点集群 |
admin-server | 管理和监控基于Spring Boot的应用(Spring Boot Admin),依赖于 eureka-server-ha |
zuul-gateway | Zuul 服务网关,依赖 eureka-server-ha,可配合 eureka-client \ feign-demo 使用 |
eureka-client | Eureka客户端,依赖 eureka-server-ha |
rest-demo | REST服务(Spring Data REST + Spring Data JPA) |
config-client | Config客户端,依赖 config-server |
swagger2-demo | Swagger2 |
feign-demo | Feign,依赖 eureka-server-ha \ eureka-client |