From 8cbb7245e571d312c8b0d2ba2e5117ef16ab0604 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Mon, 3 Jun 2024 17:20:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8D=87=E7=BA=A7SnailJob=201.0.0-beta?= =?UTF-8?q?3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/nacos/ruoyi-job.yml | 2 +- pom.xml | 2 +- .../main/java/org/dromara/common/job/config/SnailJobConfig.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/nacos/ruoyi-job.yml b/config/nacos/ruoyi-job.yml index 185d0d56..7fdfc501 100644 --- a/config/nacos/ruoyi-job.yml +++ b/config/nacos/ruoyi-job.yml @@ -16,7 +16,7 @@ spring: snail-job: enabled: true # 需要在 SnailJob 后台组管理创建对应名称的组,然后创建任务的时候选择对应的组,才能正确分派任务 - group-name: "ruoyi_group" + group: "ruoyi_group" # SnailJob 接入验证令牌 token: "SJ_cKqBTPzCsWA3VyuCfFoccmuIEGXjr5KT" server: diff --git a/pom.xml b/pom.xml index a1285710..2eaa4a29 100644 --- a/pom.xml +++ b/pom.xml @@ -33,7 +33,7 @@ 5.8.27 3.29.0 2.2.7 - 1.0.0-beta2 + 1.0.0-beta3 1.38.0 1.18.32 7.4 diff --git a/ruoyi-common/ruoyi-common-job/src/main/java/org/dromara/common/job/config/SnailJobConfig.java b/ruoyi-common/ruoyi-common-job/src/main/java/org/dromara/common/job/config/SnailJobConfig.java index ef367297..163e43f7 100644 --- a/ruoyi-common/ruoyi-common-job/src/main/java/org/dromara/common/job/config/SnailJobConfig.java +++ b/ruoyi-common/ruoyi-common-job/src/main/java/org/dromara/common/job/config/SnailJobConfig.java @@ -32,7 +32,7 @@ import java.util.List; @EnableConfigurationProperties(SnailJobServerProperties.class) @ConditionalOnProperty(prefix = "snail-job", name = "enabled", havingValue = "true") @EnableScheduling -@EnableSnailJob(group = "${snail-job.group-name}") +@EnableSnailJob public class SnailJobConfig { @Autowired