# spring-cloud-alibaba-examples **Repository Path**: casanova/spring-cloud-alibaba-examples ## Basic Information - **Project Name**: spring-cloud-alibaba-examples - **Description**: Spring Cloud Alibaba 学习记录 - **Primary Language**: Java - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-08-18 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # spring-cloud-alibaba-examples ### 介绍 Spring Cloud Alibaba 的简单用法,在此之前需要稍微了解微服务的相关名词,比如注册中心、网关、服务提供者、服务消费者等都是干啥的。 ### 依赖的库及版本 | 库名称 | 当前版本 | 备注 | | -------------------------- | -------------- | ---------------------------------- | | Spring Boot | 2.1.12.RELEASE | | | Spring Cloud | Greenwich.SR2 | | | Spring Cloud Alibaba | 2.1.0.RELEASE | | | [Nacos](nacos/nacos-1.1.4) | 1.1.4 | 无特殊注明,该项目均使用该注册中心 | ### 测试工具 [HTTP client](https://www.jetbrains.com/help/idea/http-client-in-product-code-editor.html) ### 相关工具 - [Nacos](https://nacos.io/zh-cn/index.html) - [Dubbo](http://dubbo.apache.org/zh-cn/index.html) - [Seata](https://seata.io/zh-cn/) - [Sentinel](https://github.com/alibaba/Sentinel) - [RocketMQ](https://rocketmq.apache.org/) ### 服务及端口号 备注:所有服务的 [pom.xml](pom.xml) 均需要添加 Spring Cloud Alibaba 的依赖管理 ```xml com.alibaba.cloud spring-cloud-alibaba-dependencies ${spring-cloud-alibaba.version} pom import ``` | 服务名称 | 端口号 | 描述 | | ------------------------ | ---------- | ---------------------- | | nacos-service-provider | 8010、8011 | 服务提供者 | | nacos-service-consumer | 8020、8021 | 服务消费者 | | nacos-config | 8030、8031 | Nacos 更新服务配置 | | system-service-gateway | 8040、8041 | 微服务网关 | | dubbo-service-provider | 8050、8051 | 通过 dubbo 提供服务 | | dubbo-service-consumer | 8060、8061 | 通过 dubbo 消费服务 | | seata-service-account | 8070、8071 | 分布式事务:account | | seata-service-business | 8080、8081 | 分布式事务:business | | seata-server | 8091 | seata-server | | seata-service-order-form | 8100、8101 | 分布式事务:order-form | | seata-service-storage | 8110、8111 | 分布式事务:storage | | sentinel-dubbo-service-customer | 8120、8121 | dubbo 使用 sentinel 的消费者 | | sentinel-dubbo-service-provider | 8130、8131 | dubbo 使用 sentinel 的提供者 | ### 记录 - [注册服务](nacos/nacos-service-provider) - [服务消费者调用服务提供者,实现负载均衡](nacos/nacos-service-consumer) - [Nacos 管理服务配置](nacos/nacos-config) - [使用 Spring Cloud Gateway 作为网关](system-service-gateway) - [在 Spring Cloud Alibaba 中使用 Dubbo](dubbo) - [使用 seata 实现分布式事务管理](seata) - [使用 sentinel 实现服务限流](sentinel)