一个用于简化xxl-job
配置的spring-boot-starter
组件, 使用job客户端
的http server port
来接收xxl-job-admin的任务调度请求,不需要在job客户端
服务器上额外开通xxl-job-core
内置的netty服务器
的端口(xxl.job.executor.port
),Job
客户端的服务器不需要开放xxl-job
执行器的端口的安全组策略就能完成调度,增加开关控制(xxl.job.enable-proxy
),默认开启,组件不改变原xxl-job
的任何特性。
版本号在maven
中央仓库获取
<dependency>
<groupId>io.github.weasley-j</groupId>
<artifactId>xxl-job-spring-boot-starter</artifactId>
<version>${xxl-job-starter.verison}</version>
</dependency>
IDEA辅助配置元数据提示
# xxj-job配置
xxl:
job:
access-token: default_token
admin-addresses: http://ip:port/xxl-job-admin
# Job客户端元数据
executor:
app-name: xxl-job-spring-boot-starter-tests
address: http://fgimax2.fgnwctvip.com:${server.port}
log-path: ./logs
项 | 版本 | 备注 |
---|---|---|
JDK | 1.8+ | |
xxl-job-core | 2.x.x | |
springboot | 2.x.x - 3.x.x |