All Projects → BNDong → spring-cloud-examples

BNDong / spring-cloud-examples

Licence: other
🎏 Personal learning use cases.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
java
68154 projects - #9 most used programming language
HTML
75241 projects
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to spring-cloud-examples

OnlineStore
REST api for an online store using microservices architecture.
Stars: ✭ 27 (-18.18%)
Mutual labels:  spring-cloud, spring-security
Cloud-Native-App-Spring-Boot
A Cloud Native App with Spring Coud Security with KeyCloak Auth Server, API Gateway Server, Naming Server, Config Server and Distributed Tracing and ELK Stack hosted in K8s
Stars: ✭ 19 (-42.42%)
Mutual labels:  spring-cloud, spring-security
Taroco-Authentication
Taroco-Authentication 统一认证服务
Stars: ✭ 49 (+48.48%)
Mutual labels:  spring-security, spring-oauth2
Awesome Spring
A curated list of awesome books, tutorials, courses, and resources for the Spring framework ecosystem.
Stars: ✭ 186 (+463.64%)
Mutual labels:  spring-cloud, spring-security
tictactoe-microservices-example
An example of Spring Cloud Microservices application based on books (see Links section)
Stars: ✭ 23 (-30.3%)
Mutual labels:  spring-cloud, spring-boot-admin
Springcloud Shop
基于Spring Boot、Spring Cloud的微服务商城demo
Stars: ✭ 198 (+500%)
Mutual labels:  spring-cloud, spring-security
iam-service
IAM Service is used for the management of user, role, permission, organization, project, password policy, fast code, client, menu, icon, multi-language , and supports for importing third-party users through LDAP.
Stars: ✭ 39 (+18.18%)
Mutual labels:  spring-cloud, spring-oauth2
Javadevjournal
Source code for the tutorials published on the Javadevjournal site.
Stars: ✭ 141 (+327.27%)
Mutual labels:  spring-cloud, spring-security
spring-cloud-boilerplate
The discovery & gateway boilerplate based on spring-cloud with spring security.
Stars: ✭ 12 (-63.64%)
Mutual labels:  spring-cloud, spring-security
zainabed-spring-security-jwt
Authentication & Authorization module for standalone Spring Boot app or Spring Cloud applications
Stars: ✭ 24 (-27.27%)
Mutual labels:  spring-cloud, spring-security
Mcloud
基于Spring Cloud,实现微服务中常用的基础模块,包括 OAuth2 认证服务,统一注册中心,系统监控中心, 统一配置中心,API网关以及熔断器
Stars: ✭ 185 (+460.61%)
Mutual labels:  spring-cloud, spring-security
spring-petclinic-microservices
Distributed version of Spring Petclinic built with Spring Cloud
Stars: ✭ 55 (+66.67%)
Mutual labels:  spring-cloud, spring-boot-admin
Spring Boot Cloud
基于 Spring Boot、Spring Cloud、Spring Oauth2 和 Spring Cloud Netflix 等框架构建的微服务项目
Stars: ✭ 2,044 (+6093.94%)
Mutual labels:  spring-cloud, spring-boot-admin
oauth-boot
spring-boot and spring oauth2
Stars: ✭ 111 (+236.36%)
Mutual labels:  spring-security, spring-oauth2
Spring Samples
A series of examples used to demonstrate certain features of Spring.
Stars: ✭ 154 (+366.67%)
Mutual labels:  spring-cloud, spring-security
choerodon-oauth
This service is the authorized authentication center of the choerodon microservices framework and is mainly responsible for user privilege and authorization.
Stars: ✭ 19 (-42.42%)
Mutual labels:  spring-cloud, spring-oauth2
Mi S
基于SpringBoot+SpringCloud+Mybatis主流框架搭建的分布式敏捷开发系统架构,为中、小型项目打造企业级基础开发多种解决方案。
Stars: ✭ 140 (+324.24%)
Mutual labels:  spring-cloud, spring-security
Cloud Book
《Spring Cloud 微服务架构进阶》各章节附录源码
Stars: ✭ 142 (+330.3%)
Mutual labels:  spring-cloud, spring-security
JavaFamily
【Java面试+Java学习指南】 一份涵盖大部分Java程序员所需要掌握的核心知识。
Stars: ✭ 517 (+1466.67%)
Mutual labels:  spring-cloud, spring-security
Spring
Personal notes of preparation to Spring 5 Professional Certification
Stars: ✭ 35 (+6.06%)
Mutual labels:  spring-cloud, spring-security

spring-cloud-examples

🐳 Personal learning use cases. 个人学习用例。
以异构语言为目的的微服务架构,高自由度,可扩展,可伸缩。
使用 Docker 构建服务。本地架构服务器IP:192.168.1.254,本地开发计算机IP:192.168.1.188

architecture

architecture

startup dependency

startup

※启动服务组件的时候,请注意服务之间的依赖!

version

type version
spring boot 2.0.6.RELEASE
spring cloud Finchley.SR2
jdk 1.8

project

application port describe
spring-cloud-eureka 9010/9011 注册中心:安全认证
spring-cloud-config 9020 配置中心:配置刷新
spring-cloud-zuul 9030 API网关:回退、熔断、重试、限流、鉴权
spring-boot-admin 9040 boot管理:监控、日志、配置
spring-cloud-oauth 9050 授权中心:注册、签发、鉴权、撤销
spring-cloud-sidecar -- 异构客户端代理

startup project

服务启动的顺序,参考服务依赖。

启动容器

容器的启动参考:cloud-docker-compose 的说明文档

上传jar包

项目打包命令:
mvn clean :删除 target 目录
mvn package :重新打包

打包后的 jar 包,上传至 cloud-docker-compose/volumes/[容器名称]/ 目录下。

进入容器操作 jar 包

关于进入容器和 jar 包的相关操作,封装了操作脚本:
宿主机中脚本目录: cloud-docker-compose/sh/
容器中脚本目录:/usr/local/sh/

  • 进入容器
    运行脚本:./docker_in.sh
    出现以下界面:
The container currently running:
--------------------------------------------------
1 statistics_service_redis_even
2 statistics_service_redis_odd
3 statistics_service_phpredisadmin_odd
4 statistics_service_phpredisadmin_even
5 statistics_service_phpredisadmin
6 openzipkin
7 openzipkin_dependencies
8 openzipkin_mysql
9 behavior_mycat
10 log_service_nginx
...
--------------------------------------------------
Please enter the container line number: [输入需要进入容器的编号]

输入需要进入容器的编号,回车进入容器。

  • 启动 jar
    运行脚本:./jar_start.sh
    出现以下界面:
Enter the jar storage directory(default: /data):[jar 包存储目录] 
--------------------------------------------------
1 ****.jar
--------------------------------------------------
Enter the line number to run the jar package(default: 1): [启动的 jar 包编号]
Enter the log storage directory(default: /dev/null): [启动信息输出目录,默认不输出(调试使用)。项目中有关于此信息的默认日志文件]
Input configuration environment(default: dev): [启动环境,加载不同的配置文件]
  • 关闭 jar
    运行脚本:./jar_stop.sh
    出现以下界面:
The jar package that is running:
--------------------------------------------------
   47 ?        Sl   249:10 java -jar /data/cloud-eureka-1-0.0.1-SNAPSHOT.jar --spring.profiles.active=dev
 7609 ?        S+     0:00 grep java -jar .*jar [※忽略此运行进程]
--------------------------------------------------
Input PID of the process: [输入需要结束的进程 PID]
  • 重启 jar
    运行脚本:./jar_restart.sh
    出现以下界面:
Enter the jar storage directory(default: /data): [jar 包存储目录] 
--------------------------------------------------
1 ***.jar
--------------------------------------------------
Enter the line number to run the jar package(default: 1): [启动的 jar 包编号]
Enter the log storage directory(default: /dev/null):[启动信息输出目录,默认不输出(调试使用)。项目中有关于此信息的默认日志文件]
Input configuration environment(default: dev): [重新启动环境,加载不同的配置文件]

project log

项目日志位置:

  • 宿主机日志目录:cloud-docker-compose/logs/spring/
  • 容器日志目录:/data/logs/spring/[服务名称]/

logs

partial page

服务注册

eureka

注册历史

eureka

服务状态

admin

服务详情

admin

环境变量

admin

运行日志

admin

日志设置

admin

线程监控

admin

API监控

admin

消息队列

rabbitmq

消息监控

rabbitmq

project dependent

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].