Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Spring Cloud Netflix | 4,800 | 3,267 | 62 | 3 days ago | 49 | July 27, 2023 | 103 | apache-2.0 | Java | |
Integration with Netflix OSS components | ||||||||||
Spring Cloud Rest Tcc | 2,474 | 4 years ago | Java | |||||||
以Spring Cloud Netflix作为服务治理基础, 展示基于tcc思想所实现的分布式事务解决方案 | ||||||||||
Spring Boot Cloud | 1,944 | 4 years ago | 22 | Java | ||||||
基于 Spring Boot、Spring Cloud、Spring Oauth2 和 Spring Cloud Netflix 等框架构建的微服务项目 | ||||||||||
User Guide Springcloud | 1,377 | 5 years ago | 9 | other | ||||||
[Cloudframeworks]Microservices Architecture with Spring Cloud - user guide / [云框架]基于Spring Cloud的微服务架构-用户指南 | ||||||||||
Roncoo Education | 1,122 | 4 days ago | 2 | mit | Java | |||||
领课教育系统(roncoo-education)是基于领课网络多年的在线教育平台开发和运营经验打造出来的产品,致力于打造一个各行业都适用的分布式在线教育系统。系统采用前后端分离模式,前台采用vue.js为核心框架,后台采用Spring Cloud为核心框架。系统目前主要功能有课程点播功能,支持多家视频云的接入,课程附件管理功能,支持多家存储云的接入,讲师管理功能,支持讲师入驻功能,可以帮助个人或者企业快速搭建一个轻量级的在线教育平台。 | ||||||||||
Spring Cloud Netflix Example | 741 | 3 years ago | 4 | mit | Java | |||||
spring-cloud-netflix-example is an example for microservices system | ||||||||||
Jhipster Registry | 686 | 2 days ago | 17 | apache-2.0 | TypeScript | |||||
JHipster Registry, based on Spring Cloud Netflix Eureka and Spring Cloud Config | ||||||||||
Microservice_arch_springcloud | 225 | a year ago | 2 | apache-2.0 | Java | |||||
基于SpringCloud实现的微服务架构示例工程。《软件架构探索》的配套组件。 | ||||||||||
Spring Cloud Tutorial | 168 | 5 years ago | ||||||||
Spring Cloud Tutorial.《Spring Cloud 教程》 | ||||||||||
J360 Cloud All | 165 | 7 years ago | 2 | Java | ||||||
spring cloud独立功能介绍和demo 分布式配置服务器、客户端、服务发现、负载均衡、断路器Hytrix |
本项目是一个基于 Spring Boot、Spring Cloud、Spring Oauth2 和 Spring Cloud Netflix 等框架构建的微服务项目。
该项目包含 8 个服务
mvn clean package
打包项目及 Docker 镜像docker-compose up -d
启动所有项目127.0.0.1 registry config monitor rabbitmq auth-service
访问 http://localhost:8761/ 默认账号 user,密码 password
访问 http://localhost:8040/ 默认账号 admin,密码 admin
访问 http://localhost:9411/ 默认账号 admin,密码 admin
Docker 启动访问 http://localhost:15673/ 默认账号 guest,密码 guest(本地 rabbit 管理系统默认端口15672)
curl -X POST -vu client:secret http://localhost:8060/uaa/oauth/token -H "Accept: application/json" -d "password=password&username=anil&grant_type=password&scope=read%20write"
返回如下格式数据:
{
"access_token": "eac56504-c4f0-4706-b72e-3dc3acdf45e9",
"token_type": "bearer",
"refresh_token": "da1007dc-683c-4309-965d-370b15aa4aeb",
"expires_in": 3599,
"scope": "read write"
}
curl -i -H "Authorization: Bearer eac56504-c4f0-4706-b72e-3dc3acdf45e9" http://localhost:8060/svca
返回如下数据:
svca-service (172.18.0.8:8080)===>name:zhangxd
svcb-service (172.18.0.2:8070)===>Say Hello
curl -i -H "Authorization: Bearer eac56504-c4f0-4706-b72e-3dc3acdf45e9" http://localhost:8060/svcb
返回如下数据:
svcb-service (172.18.0.2:8070)===>Say Hello
curl -X POST -vu client:secret http://localhost:8060/uaa/oauth/token -H "Accept: application/json" -d "grant_type=refresh_token&refresh_token=da1007dc-683c-4309-965d-370b15aa4aeb"
返回更新后的 Token:
{
"access_token": "63ff57ce-f140-482e-ba7e-b6f29df35c88",
"token_type": "bearer",
"refresh_token": "da1007dc-683c-4309-965d-370b15aa4aeb",
"expires_in": 3599,
"scope": "read write"
}
curl -X POST -vu user:password http://localhost:8888/bus/refresh