GithubHelp home page GithubHelp logo

tempbottle / spring-cloud-plus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geekidea/spring-cloud-plus

0.0 0.0 0.0 143 KB

🔥🔥🔥spring-cloud-plus is Integration spring cloud and spring-cloud-alibaba quickly develop scaffolding 🚀🚀🚀

Home Page: https://springcloud.plus

License: Apache License 2.0

Java 100.00%

spring-cloud-plus's Introduction

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文档

https://nacos.io/zh-cn/docs/quick-start.html

访问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文档

https://sentinelguard.io/zh-cn/docs/quick-start.html

启动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

启动Seata

cd seata/bin
sh seata-server.sh -p 8091 -h 127.0.0.1 -m file

创建undo_log

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;

Seata文档

http://seata.io/zh-cn/docs/user/quickstart.html

Seata示例

https://github.com/seata/seata-samples/tree/master/springcloud-nacos-seata

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's People

Contributors

springboot-plus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.