6 Star 40 Fork 19

geekidea/spring-cloud-plus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

spring-cloud-plus

GITHUB | GITEE

springcloud.plus

spring-cloud-plus V1.0 Technology Stack

Component Version Remark
Spring Cloud Hoxton.SR3 Spring Cloud
Spring Boot 2.2.5.RELEASE Spring Boot
spring-cloud-alibaba 2.2.0.RELEASE Spring Cloud Alibaba
Spring Cloud Gateway 2.2.5.RELEASE Gateway
Nacos 1.2.1 Alibaba Nacos Discovery/Config
Sentinel 1.7.2 Alibaba Sentinel resilience and monitoring
RocketMQ 4.7.0 Alibaba RocketMQ
Seata 1.1.0 Alibaba distributed transaction solution
Security 2.2.1.RELEASE Spring Cloud Security
Spring Boot Admin 2.2.2 Spring Boot Admin
Spring Boot Admin 2.2.2 Spring Boot Admin
ELK undetermined Elasticsearch Logstash Kibana
mybatisplus 3.3.1 Dao

文档资料参考:

Spring Cloud

Spring Cloud Docs

Hoxton.SR3 Docs

Spring Cloud Alibaba:

spring-cloud-alibaba GITHUB

spring-cloud-alibaba Docs

Quick Start

git clone

git clone https://github.com/geekidea/spring-cloud-plus.git
mvn clean install

准备工作

1. Nacos 服务发现与配置

下载Nacos 1.2.1

https://github.com/alibaba/nacos/releases/tag/1.2.1

启动Nacos

sh nacos/bin/startup.sh -m standalone

访问Nacos控制台

http://localhost:8848/nacos Nacos控制台账号密码:nacos/nacos

2. Sentinel 熔断/限流等

下载Sentinel 1.7.2

https://github.com/alibaba/Sentinel/releases/tag/1.7.2

启动Sentinel

java -Dserver.port=8600 -Dcsp.sentinel.dashboard.server=localhost:8600 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard-1.7.2.jar

访问Sentinel控制台

http://localhost:8600 Sentinel控制台账号密码:sentinel/sentinel

3. seata

暂时不用配置

下载seata

https://github.com/seata/seata/releases/tag/v1.1.0

4. 服务启动顺序

启动 scp-gateway 中的 ScpGatewayApplication
启动 scp-admin 中的 ScpAdminApplication
启动 scp-system 中的 ScpSystemServerApplication
启动 scp-example 中的 ScpExampleServerApplication

访问项目

Gateway 端口:9999

访问 scp-admin 端口: 9000

spring boot admin监控面板 http://localhost:9000/wallboard

访问scp-system 端口: 9100

通过gateway方式访问

http://localhost:9999/system/sysUser/info?name=hello

直接访问

http://localhost:9100/sysUser/info?name=hello

访问 scp-example 端口: 9200

通过gateway方式访问

http://localhost:9999/example/example/test

直接访问

http://localhost:9200/example/test

Fallback测试

通过gateway方式访问

http://localhost:9999/example/example/testError

直接访问

http://localhost:9200/example/testError

空文件

简介

spring-cloud-plus is Integration spring cloud and spring-cloud-alibaba quickly develop scaffolding 展开 收起
README
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/geekidea/spring-cloud-plus.git
git@gitee.com:geekidea/spring-cloud-plus.git
geekidea
spring-cloud-plus
spring-cloud-plus
master

搜索帮助