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 5ad60c4e..e6dda6d3 100644 --- a/pom.xml +++ b/pom.xml @@ -33,7 +33,7 @@ 5.8.27 3.29.0 2.2.7 - 1.0.0-beta1 + 1.0.0-beta2 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..e93b9668 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(group = "${snail-job.group}") public class SnailJobConfig { @Autowired