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 |
git clone https://github.com/geekidea/spring-cloud-plus.git
mvn clean install
https://github.com/alibaba/nacos/releases/tag/1.2.1
sh nacos/bin/startup.sh -m standalone
https://nacos.io/zh-cn/docs/quick-start.html
http://localhost:8848/nacos
Nacos控制台账号密码:nacos
/nacos
https://github.com/alibaba/Sentinel/releases/tag/1.7.2
https://sentinelguard.io/zh-cn/docs/quick-start.html
java -Dserver.port=8600 -Dcsp.sentinel.dashboard.server=localhost:8600 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard-1.7.2.jar
http://localhost:8600
Sentinel控制台账号密码:sentinel
/sentinel
https://github.com/seata/seata/releases/tag/v1.1.0
cd seata/bin
sh seata-server.sh -p 8091 -h 127.0.0.1 -m file
CREATE TABLE `undo_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`branch_id` bigint(20) NOT NULL,
`xid` varchar(100) NOT NULL,
`context` varchar(128) NOT NULL,
`rollback_info` longblob NOT NULL,
`log_status` int(11) NOT NULL,
`log_created` datetime NOT NULL,
`log_modified` datetime NOT NULL,
`ext` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ux_undo_log` (`xid`,`branch_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
http://seata.io/zh-cn/docs/user/quickstart.html
https://github.com/seata/seata-samples/tree/master/springcloud-nacos-seata
启动 scp-gateway 中的 ScpGatewayApplication
启动 scp-admin 中的 ScpAdminApplication
启动 scp-system 中的 ScpSystemServerApplication
启动 scp-example 中的 ScpExampleServerApplication
spring boot admin监控面板 http://localhost:9000/wallboard
通过
gateway
方式访问
http://localhost:9999/system/sysUser/info?name=hello
直接访问
http://localhost:9100/sysUser/info?name=hello
通过
gateway
方式访问
http://localhost:9999/example/example/test
直接访问
http://localhost:9200/example/test
通过
gateway
方式访问
http://localhost:9999/example/example/testError
直接访问