Skip to content

Commit ffd93a8

Browse files
author
YunaiV
committed
增加 spring cloud feign x seata 的示例
1 parent 7ac639a commit ffd93a8

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

README.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@
7171
* [《芋道 Spring Boot 分库分表入门》](http://www.iocoder.cn/Spring-Boot/sharding-datasource/?github) 对应 [lab-18](https://github.com/YunaiV/SpringBoot-Labs/tree/master/lab-18)
7272
* [《芋道 Spring Boot 数据库版本管理入门》](http://www.iocoder.cn/Spring-Boot/database-version-control/?github) 对应 [lab-20](https://github.com/YunaiV/SpringBoot-Labs/tree/master/lab-20)
7373

74+
## 事务管理
75+
76+
* [《芋道 Spring Boot 分布式事务 Seata 入门》](http://www.iocoder.cn/Spring-Boot/Seata/?github) 对应 [lab-52](https://github.com/YunaiV/SpringBoot-Labs/tree/master/lab-52)
77+
7478
## 安全控制
7579

7680
* [《芋道 Spring Boot 安全框架 Spring Security 入门》](http://www.iocoder.cn/Spring-Boot/Spring-Security/?github) 对应 [lab-01](https://github.com/YunaiV/SpringBoot-Labs/tree/master/lab-01)
@@ -141,7 +145,7 @@
141145
* [《芋道 Spring Cloud Alibaba 服务容错 Sentinel 入门》](http://www.iocoder.cn/Spring-Cloud-Alibaba/Sentinel/?github) 对应 [labx-04](https://github.com/YunaiV/SpringBoot-Labs/tree/master/labx-04)
142146
* [《芋道 Spring Cloud Alibaba 消息队列 RocketMQ 入门》](http://www.iocoder.cn/Spring-Cloud-Alibaba/RocketMQ/?github) 对应 [labx-06](https://github.com/YunaiV/SpringBoot-Labs/tree/master/labx-06)
143147
* [《芋道 Spring Cloud Alibaba 配置中心 Nacos 入门》](http://www.iocoder.cn/Spring-Cloud-Alibaba/Nacos-Config/?github) 对应 [labx-05](https://github.com/YunaiV/SpringBoot-Labs/tree/master/labx-05)
144-
* 《芋道 Spring Cloud Alibaba 分布式事务 Seata 入门》
148+
* [《芋道 Spring Cloud Alibaba 分布式事务 Seata 入门》](http://www.iocoder.cn/Spring-Cloud-Alibaba/Seata/?github) 对应 [labx-17](https://github.com/YunaiV/SpringBoot-Labs/tree/master/labx-17)
145149

146150
## 推荐搭配食用
147151

@@ -197,6 +201,10 @@
197201
* 《芋道 Spring Cloud 消息总线 RabbitMQ 入门》计划中...
198202
* 《芋道 Spring Cloud 消息总线 Kafka 入门》计划中...
199203

204+
## 分布式事务
205+
206+
* [《芋道 Spring Cloud Alibaba 分布式事务 Seata 入门》](http://www.iocoder.cn/Spring-Cloud-Alibaba/Seata/?github) 对应 [labx-17](https://github.com/YunaiV/SpringBoot-Labs/tree/master/labx-17)
207+
200208
## 监控管理
201209

202210
* [《芋道 Spring Boot 异常管理平台 Sentry 入门》](http://www.iocoder.cn/Spring-Boot/Sentry/?github) 对应 [lab-51](https://github.com/YunaiV/SpringBoot-Labs/tree/master/lab-51)
@@ -239,7 +247,8 @@
239247
## 分布式事务
240248

241249
**[Seata](http://www.iocoder.cn/Seata/install/?github)**
242-
* [《芋道 Dubbo 分布式事务 Seata 入门》](http://www.iocoder.cn/Dubbo/Seata/?self) 对应 [lab-53](https://github.com/YunaiV/SpringBoot-Labs/tree/master/lab-53)
250+
* [《芋道 Dubbo 分布式事务 Seata 入门》](http://www.iocoder.cn/Dubbo/Seata/?github) 对应 [lab-53](https://github.com/YunaiV/SpringBoot-Labs/tree/master/lab-53)
251+
* [《芋道 Spring Cloud Alibaba 分布式事务 Seata 入门》](http://www.iocoder.cn/Spring-Cloud-Alibaba/Seata/?github)[「2. AT 模式 + Dubbo」](#)小节
243252

244253
## 链路追踪
245254

@@ -291,6 +300,7 @@
291300
* [《芋道 Spring Boot 分布式事务 Seata 入门》](http://www.iocoder.cn/Spring-Boot/Seata/?self)[「2. AT 模式 + 多数据源」](#)小节,实现单体 Spring Boot 项目在多数据源下的分布式事务
292301
* [《芋道 Spring Boot 分布式事务 Seata 入门》](http://www.iocoder.cn/Spring-Boot/Seata/?self)[「AT 模式 + HttpClient 远程调用」](#)小节,实现多个 Spring Boot 项目的分布式事务
293302
* [《芋道 Dubbo 分布式事务 Seata 入门》](http://www.iocoder.cn/Dubbo/Seata/?self)[「2. AT 模式」](#)小节,实现多个 Dubbo 服务的分布式事务。
303+
* [《芋道 Spring Cloud Alibaba 分布式事务 Seata 入门》](http://www.iocoder.cn/Spring-Cloud-Alibaba/Seata/?self)[「3. AT 模式 + Feign」](#)小节,实现多个 Spring Cloud 服务下的分布式事务。
294304

295305
## TCC 方案
296306

labx-17/labx-17-sc-seata-at-feign-demo/labx-17-sc-seata-at-feign-demo-order-service/src/main/java/cn/iocoder/springcloud/labx17/orderservice/feign/AccountServiceFeignClient.java

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
import org.springframework.web.bind.annotation.PostMapping;
66
import org.springframework.web.bind.annotation.RequestBody;
77

8+
/**
9+
* `account-service` 服务的 Feign 客户端
10+
*/
811
@FeignClient(name = "account-service")
912
public interface AccountServiceFeignClient {
1013

labx-17/labx-17-sc-seata-at-feign-demo/labx-17-sc-seata-at-feign-demo-order-service/src/main/java/cn/iocoder/springcloud/labx17/orderservice/feign/ProductServiceFeignClient.java

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
import org.springframework.web.bind.annotation.PostMapping;
66
import org.springframework.web.bind.annotation.RequestBody;
77

8+
/**
9+
* `product-service` 服务的 Feign 客户端
10+
*/
811
@FeignClient(name = "product-service")
912
public interface ProductServiceFeignClient {
1013

0 commit comments

Comments
 (0)