spring-cloud-learning

所属分类:代理服务器
开发工具:Java
文件大小:0KB
下载次数:0
上传日期:2023-01-16 08:48:39
上 传 者sh-1993
说明:  适合刚接触微服务架构的初学者了解和学习微服务,主要集成了注册中心、服务网关、配置中心、熔断机制、应用监控。,
(It is suitable for beginners who are new to the microservice architecture to understand and learn microservices, mainly integrating the registry, service gateway, configuration center, circuit breaker mechanism, and application monitoring.,)

文件列表:
.travis.yml (286, 2023-01-16)
LICENSE (1071, 2023-01-16)
admin-dashboard/ (0, 2023-01-16)
admin-dashboard/pom.xml (2274, 2023-01-16)
admin-dashboard/src/ (0, 2023-01-16)
admin-dashboard/src/main/ (0, 2023-01-16)
admin-dashboard/src/main/java/ (0, 2023-01-16)
admin-dashboard/src/main/java/com/ (0, 2023-01-16)
admin-dashboard/src/main/java/com/qianlq/ (0, 2023-01-16)
admin-dashboard/src/main/java/com/qianlq/admin/ (0, 2023-01-16)
admin-dashboard/src/main/java/com/qianlq/admin/AdminDashboardApplication.java (517, 2023-01-16)
admin-dashboard/src/main/java/com/qianlq/admin/config/ (0, 2023-01-16)
admin-dashboard/src/main/java/com/qianlq/admin/config/SecuritySecureConfig.java (1910, 2023-01-16)
admin-dashboard/src/main/resources/ (0, 2023-01-16)
admin-dashboard/src/main/resources/application.yml (550, 2023-01-16)
api-gateway/ (0, 2023-01-16)
api-gateway/pom.xml (2596, 2023-01-16)
api-gateway/src/ (0, 2023-01-16)
api-gateway/src/main/ (0, 2023-01-16)
api-gateway/src/main/docker/ (0, 2023-01-16)
api-gateway/src/main/docker/Dockerfile (199, 2023-01-16)
api-gateway/src/main/java/ (0, 2023-01-16)
api-gateway/src/main/java/com/ (0, 2023-01-16)
api-gateway/src/main/java/com/qianlq/ (0, 2023-01-16)
api-gateway/src/main/java/com/qianlq/apigateway/ (0, 2023-01-16)
api-gateway/src/main/java/com/qianlq/apigateway/ApiGatewayApplication.java (509, 2023-01-16)
api-gateway/src/main/java/com/qianlq/apigateway/config/ (0, 2023-01-16)
api-gateway/src/main/java/com/qianlq/apigateway/config/fallback/ (0, 2023-01-16)
api-gateway/src/main/java/com/qianlq/apigateway/config/fallback/CustomerFallback.java (1867, 2023-01-16)
api-gateway/src/main/resources/ (0, 2023-01-16)
api-gateway/src/main/resources/application-docker.yml (87, 2023-01-16)
api-gateway/src/main/resources/application-native.yml (83, 2023-01-16)
api-gateway/src/main/resources/application.yml (1145, 2023-01-16)
api-gateway/src/main/resources/banner.txt (1352, 2023-01-16)
config-server/ (0, 2023-01-16)
config-server/pom.xml (2440, 2023-01-16)
config-server/src/ (0, 2023-01-16)
... ...

# Spring-Cloud-Learning [![Build Status](https://travis-ci.org/coderqianlq/spring-cloud-learning.svg?branch=master)](https://travis-ci.org/coderqianlq/spring-cloud-learning) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Coverage Status](https://coveralls.io/repos/github/coderqianlq/spring-cloud-learning/badge.svg?branch=master)](https://coveralls.io/github/coderqianlq/spring-cloud-learning?branch=master) README: [English](README.md) | [中文](README-zh.md) spring-cloud-learning can be used as a project to learn microservices, and it's mainly contain service discovery, service gateway, configuration management, circuit breakers, application monitor. ## Table of Contents * [Components](#components) * [Getting Started](#getting-started) * [Use directly (recommend)](#use-directly-recommend) * [Use docker](#use-docker) * [Preview](#preview) * [Modules](#modules) * [Dependency Chart](#dependency-chart) * [Todo List](#todo-list) * [Collaborators](#collaborators) * [License](#license) ## Components - [x] Eureka - [x] Consul - [ ] Ribbon - [x] Feign - [x] Hystrix - [x] Turbine - [x] Zuul - [x] Spring Cloud Config - [x] Spring Cloud Stream - [x] Spring Cloud Bus - [ ] Spring Cloud Sleuth - [ ] Spring Cloud Security - [ ] Spring Cloud Task - [x] Spring Cloud Gateway To be supplemented... ## Getting Started Two methods will mainly introduced, but no matter what you need to clone the code. ``` $ git clone https://github.com/coderqianlq/spring-cloud-learning.git ``` ### Use directly (recommend) You can use ide to import the project with maven, and use ide or use command line to start project. ``` $ mvn spring-boot:run ``` You can also package the code and run it. ``` $ java -jar xxx.jar ``` ### Use docker First, you have to make sure you have installed docker and start docker server. ``` $ docker --version Docker version 18.06.1-ce, build e68fc7a ``` Then, you need to enter each submodule and execute the docker building command. ``` $ cd eureka-server $ mvn clean package -Pdocker docker:build ``` Next, return to the parent module and execute docker-compose command. ``` $ docker-compose up -d ``` Finally, you can open the registration center(default url: http://localhost:8761) to see if the service is registered successfully. ## Preview ![Spring boot admin wallboard](screenshots/Spring%20boot%20admin%20wallboard.png) ![Spring Boot admin detail](screenshots/Spring%20boot%20admin%20detail.png) ![Service customer hystrix stream](screenshots/Service%20customer%20hystrix%20stream.png) ![Hystrix monitor](screenshots/Hystrix%20monitor.png) ## Modules | - | port | remarks | | :------------- | :----------: | :-------------: | | admin-dashboard | 8040 | Spring boot Admin Dashboard for monitor spring cloud services | | api-gateway | 9090 | Service gateway(Zuul) | | config-server | 8504 | if you change the port, you need also modify bootstrap.yml of service-customer. | | consul-server | 8502 | Service discovery(Consul) | | eureka-server | 8761 | Service discovery(Eureka) | | gateway-server | 8080 | Service gateway(Gateway) | | hystrix-dashboard | 8050 | | | service-customer | 8200 | Integrated multiple components, including Feign, Spring Cloud Config, Spring Cloud Stream, Spring Cloud Bus | | service-producer | 8100 | | | turbine-server | 8060 | | | zipkin-server | 9411 | if you change the port, you need also modify bootstrap.yml of service-customer. | ## Dependency Chart | Spring Boot | Spring Cloud | Spring Boot Admin | Swagger2 | | :---------: | :----------: | :---------------: | :------: | | 2.1.5 | Greenwich | 2.1.6 | 2.7.0 | ## Todo List - [ ] Split the module of service-customer. - [x] Add the detailed usage of hystrix with turbine. - [x] Update Spring Boot to 2.x and both Spring Cloud to Greenwich. - [x] Add Spring Boot admin dashboard. - [x] Use Spring Cloud Gateway replaces zuul as service gateway. ## Collaborators

Marveliu

Joby1230

wxaaaa
## License [MIT](LICENSE) CoderQian

近期下载者

相关文件


收藏者