heyuxian / Mcloud
Licence: apache-2.0
基于Spring Cloud,实现微服务中常用的基础模块,包括 OAuth2 认证服务,统一注册中心,系统监控中心, 统一配置中心,API网关以及熔断器
Stars: ✭ 185
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Mcloud
Cloud Book
《Spring Cloud 微服务架构进阶》各章节附录源码
Stars: ✭ 142 (-23.24%)
Mutual labels: microservice, spring-boot, spring-cloud, spring-security
Sample Boot Micro
Spring Cloud + Gradle Multi Project + Java8
Stars: ✭ 72 (-61.08%)
Mutual labels: microservice, spring-boot, spring-cloud, spring-security
Febs Cloud
基于Spring Cloud Hoxton.RELEASE、Spring Cloud OAuth2 & Spring Cloud Alibaba & Element 微服务权限系统,开箱即用。预览地址:https://cloud.mrbird.cn
Stars: ✭ 1,295 (+600%)
Mutual labels: microservice, spring-boot, spring-cloud, oauth2
Cola Cloud
Cola Cloud 基于 Spring Boot, Spring Cloud 构建微服务架构企业级开发平台,集成OAuth2认证、集成短信验证码登录、微信小程序登录、FlyWay数据库版本管理、网关集成Swagger聚合所有服务API文档。基于SpringBootAdmin集成Hystrix、Turbine监控。开发用户中心、权限管理、组织架构、数据字典、消息中心、通知中心等模块。基于MyBatisPlus Generator 开发代码生成器
Stars: ✭ 285 (+54.05%)
Mutual labels: microservice, spring-boot, spring-cloud, oauth2
Spring Boot Demo
spring boot demo 是一个Spring Boot、Spring Cloud的项目示例,根据市场主流的后端技术,共集成了30+个demo,未来将持续更新。该项目包含helloworld(快速入门)、web(ssh项目快速搭建)、aop(切面编程)、data-redis(redis缓存)、quartz(集群任务实现)、shiro(权限管理)、oauth2(四种认证模式)、shign(接口参数防篡改重放)、encoder(用户密码设计)、actuator(服务监控)、cloud-config(配置中心)、cloud-gateway(服务网关)等模块
Stars: ✭ 323 (+74.59%)
Mutual labels: spring-boot, spring-cloud, oauth2, spring-security
Jiiiiiin Security
一个前后端分离的内管基础项目
Stars: ✭ 132 (-28.65%)
Mutual labels: microservice, spring-boot, spring-cloud, spring-security
Sample Spring Oauth2 Microservices
some examples that show basic and more advanced implementations of oauth2 authorization mechanism in spring-cloud microservices environment
Stars: ✭ 109 (-41.08%)
Mutual labels: spring-boot, spring-cloud, oauth2, spring-security
Taroco
整合Nacos、Spring Cloud Alibaba,提供了一系列starter组件, 同时提供服务治理、服务监控、OAuth2权限认证,支持服务降级/熔断、服务权重,前端采用vue+elementUI+webpack,可以很好的解决转向Spring Cloud的一系列问题。
Stars: ✭ 545 (+194.59%)
Mutual labels: spring-boot, spring-cloud, oauth2, spring-security
Javadevjournal
Source code for the tutorials published on the Javadevjournal site.
Stars: ✭ 141 (-23.78%)
Mutual labels: rest-api, spring-boot, spring-cloud, spring-security
Springboot Registration Login Theperfectexample
Login & Signup tutorial for every website ,mixes a lot of microservices together with the latest spring framework api in combined with full security
Stars: ✭ 89 (-51.89%)
Mutual labels: microservice, spring-boot, spring-security
Reactive Spring Security 5 Workshop
Hands-On workshop for securing a reactive spring boot 2 application in multiple steps
Stars: ✭ 92 (-50.27%)
Mutual labels: spring-boot, oauth2, spring-security
Mall
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
Stars: ✭ 54,797 (+29520%)
Mutual labels: spring-boot, spring-cloud, spring-security
Easy Notes
🍋 简笔记(easy notes)打造你的轻便私人笔记。接口涉及Spring Security、OAuth2、Jwt、MongoDB,客户端采用 Vue.js 、Ant Design
Stars: ✭ 89 (-51.89%)
Mutual labels: spring-boot, oauth2, spring-security
Cas
Apereo CAS - Enterprise Single Sign On for all earthlings and beyond.
Stars: ✭ 9,154 (+4848.11%)
Mutual labels: spring-boot, spring-cloud, oauth2
Okta Blog Archive
Okta Developer Blog
Stars: ✭ 74 (-60%)
Mutual labels: spring-boot, spring-cloud, oauth2
Spring Samples
A series of examples used to demonstrate certain features of Spring.
Stars: ✭ 154 (-16.76%)
Mutual labels: spring-boot, spring-cloud, spring-security
Spring Cloud Study
spring-cloud学习
Stars: ✭ 108 (-41.62%)
Mutual labels: spring-boot, spring-cloud, spring-security
Spring Cloud Flycloud
🔥🔥🔥FlyClould 微服务实战项目框架,在该框架中,包括了用 Spring Cloud 构建微服务的一系列基本组件和框架,对于后台服务框架的搭建有很大的参考价值,大家可以参考甚至稍加修改可以直接应用于自己的实际的项目开发中,该项目没有采用Maven进行项目构建,Maven通过xml进行依赖管理,导致整个配置文件太过臃肿,另外灵活性也不是很强,所以我采用Gradle进行项目构建和依赖管理,在FlyTour项目中我们见证了Gradle的强大,通过简单的一些配置就可以轻松的实现组件化的功能。该项目共有11个Module工程。其中10个位微服务工程,这10个微服务工程构成了一个完整的微服务系统,微服务系统包含了8个基础服务,提供了一整套微服务治理功能,他们分别是配置中心module_c…
Stars: ✭ 1,514 (+718.38%)
Mutual labels: spring-boot, spring-cloud, spring-security
Piggymetrics
Microservice Architecture with Spring Boot, Spring Cloud and Docker
Stars: ✭ 11,161 (+5932.97%)
Mutual labels: microservice, spring-boot, spring-cloud
Gemini
Model Driven REST framework to automatically generate CRUD APIs
Stars: ✭ 138 (-25.41%)
Mutual labels: rest-api, microservice, spring-boot
MCloud - 微服务基础设施
项目简介
MCloud 基于 Spring Cloud 进行开发,提供了项目中常用的基础设施:
- mcloud-registry 服务注册与发现中心。
- keycloak 用户认证和管理。
-
mcloud-apigw 基于Spring cloud gateway 实现的 API 网关 ,同时使用了
netflix-ribbon
作为负载均衡器。 - mcloud-config 基于 GitHub 的统一配置中心(此项目使用 这个 repo 作为配置存储库)。
-
mcloud-logs 基于
logstash
Kibana
以及ElasticSearch
实现的日志服务。 - mcloud-demo Demo Project
-
mcloud-console 基于 ant-design-pro 搭建的系统控制台(因升级
Spring Cloud
版本缘故,此模块暂不可用)。
其他:
- Code Generator 用于 Intellij-IDEA 的代码生成器插件。
- 文档参考:https://www.docs4dev.com
Dependencies
- Spring Boot
2.1.3.RELEASE
- Spring Cloud
Greenwich.RELEASE
- Maven
- JDK 1.8
- ......
环境依赖
-
JDK 1.8 以上
-
IDE 请安装对应IDE的 lombok 插件
-
**注:**在安装完
keycloak
后,需要将mcloud/data
目录下的realm-export.json
导入keycloak
,并手动重置mcloud realm
下的mcloud
客户端的clientSecret
,并将新的clientSecret
填入mcloud-demo
下的application.yml
中。
Quick Start
克隆项目到本地
git clone https://github.com/heyuxian/mcloud.git
构建及运行
因为项目使用配置优先的方式,所以需要先启动 mcloud-config
模块,然后依次启动 mcloud-registry
、mcloud-apigw
,mcloud-demo
。
启动配置中心:
cd mcloud-config
mvn clean install spring-boot:run
启动注册中心:
cd mcloud-registry
#分别在三个终端运行以下命令,用于启动多个注册节点
mvn clean install spring-boot:run -Dspring.profiles.active=peer1
mvn clean install spring-boot:run -Dspring.profiles.active=peer2
mvn clean install spring-boot:run -Dspring.profiles.active=peer3
启动 API 网关:
cd mcloud-apigw
mvn clean install spring-boot:run
启动示例项目:
cd mcloud-demo
mvn clean install
#分别在两个终端运行以下命令,用于启动两个节点
mvn spring-boot:run -Dspring.profiles.active=peer1
mvn spring-boot:run -Dspring.profiles.active=peer2
所有节点都启动完成后,还需要获取 access_token
,之后,我们就可以使用这个 token 来访问我们的 API:
curl --request GET \
--url http://localhost/mcloud-demo/users/me \
--header 'authorization: Bearer ${access_token}' \
--header 'cache-control: no-cache' \
--header 'content-type: application/json' \
--data '{}'
问题及建议
若是对于本项目有任何问题或建议,请提 Issue 。
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].