🍍环境配置
# 引入Cube核心包SDK (cube-springboot-starter)
spring:
gobrs:
async:
enable: true
rules:
- name: "test" # 规则名称
content: "bigoumaRpcService->CouponNewPersonRpcService;
productRpcService->stockRpcService,couponRpcService->priceRpcService"
cube:
config:
server-info:
server-addr: 127.0.0.1:8080
access-token: MTAwNTMrc3RhZ2UrZGV0YWls # 在第三步中申请
- 因为Cube在做任务编排时,是依赖于Gobrs-Async (opens new window)的 所以如果需要集成异步任务编排的能力需要配置Gobars-Async 的编排配置信息
- access-token是在第三步中 Cube 平台中申请创建的
帮助我们改善此文档 (opens new window)