优化租户、trace等数据传递方式,由拦截器改为过滤器

This commit is contained in:
zlt
2019-09-15 23:43:46 +08:00
parent dd0fe1084c
commit 3b91e9d947
11 changed files with 144 additions and 126 deletions
+5 -2
View File
@@ -13,8 +13,11 @@
 
**提供以下两个测试接口**
1. `http://localhost:9090/placeOrder`:成功下单
2. `http://localhost:9090/placeOrder`:测试异常回滚,`storage-service`和`order-service`的事务已提交,`account-service`出异常后全局回滚
1. 事务成功:扣除库存成功 > 创建订单成功 > 扣减账户余额成功
http://localhost:9090/placeOrder
1. 事务失败:扣除库存成功 > 创建订单成功 > 扣减账户余额失败,事务回滚
http://localhost:9090/placeOrderFallBack
 
## 二、运行步骤