Skip to content

一个用于简化xxl-job配置的spring-boot组件,使用job客户端的http server port就能接收来自xxl-job-admin的调度请求,不需要在job客户端服务器上额外开通xxl-job-core内置的netty服务器端口的安全组策略就能完成调度,增加开关控制,默认开启

License

Notifications You must be signed in to change notification settings

Weasley-J/xxl-job-spring-boot-parent

Repository files navigation

xxl-job-spring-boot-starter

Maven Central

一个用于简化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的任何特性。

修改前后架构对比

修改前

xxj-job-1 (1)

修改后

xxj-job-2

快速开始

1 添加pom依赖

版本号在maven中央仓库获取

<dependency>
    <groupId>io.github.weasley-j</groupId>
    <artifactId>xxl-job-spring-boot-starter</artifactId>
    <version>${xxl-job-starter.verison}</version>
</dependency>

2 配置项目的yaml文件

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

3 版本适配

版本 备注
JDK 1.8+
xxl-job-core 2.x.x
springboot 2.x.x - 3.x.x

About

一个用于简化xxl-job配置的spring-boot组件,使用job客户端的http server port就能接收来自xxl-job-admin的调度请求,不需要在job客户端服务器上额外开通xxl-job-core内置的netty服务器端口的安全组策略就能完成调度,增加开关控制,默认开启

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published