🌭框架集成
# 准备条件
所需运行环境
- Maven
- JDK1.8
- Spring
提示
本框架为复杂上游调用了逻辑而设计, 如果只是单纯的使用多线程开发任务, 如果Future
或线程池就可满足用户需求,无需使用本框架。 如果不清楚本框架的使用场景,
请阅读 简介
# Gobrs-Async 配置
公网
# Maven依赖
<dependency>
<groupId>io.github.memorydoc</groupId>
<artifactId>gobrs-async-starter</artifactId>
<version>1.3.0-RELEASE</version>
</dependency>
京东内网
<dependency>
<groupId>com.jd.gobrs</groupId>
<artifactId>gobrs-async-starter</artifactId>
<version>1.0.1-SNAPSHOT</version>
</dependency>
# 配置 application.yml
server:
port: 8888 # 端口: 8080
spring:
gobrs:
async:
rules:
# 支持多命名空间
- name: "ruleName" # 规则名称
content: "AService->BService,CService,FService; BService->FService,GService;"
- name: "azh"
content: "AService->BService,CService,FService; BService->FService,GService;"
task-interrupt: false #局部异常是否打断主流程
# 启动成功
启动工程打印如下banner
___. _____
____ ____\_ |_________ ______ / _ \ _________.__. ____ ____
/ ___\ / _ \| __ \_ __ \/ ___/ ______ / /_\ \ / ___< | |/ \_/ ___\
/ /_/ > <_> ) \_\ \ | \/\___ \ /_____/ / | \\___ \ \___ | | \ \___
\___ / \____/|___ /__| /____ > \____|__ /____ >/ ____|___| /\___ >
/_____/ \/ \/ \/ \/ \/ \/ \/ :: Gobrs-Async :: jdk (v1.8.0_251)
GitHub: https://github.com/dromara/gobrs-async
Gitee: https://gitee.com/dromara/gobrs-async
Site: https://docs.sizegang.cn
Last Updated: 1/6/2023, 9:59:30 AM