From 68e93fe853ab3bb2b3934049c06479dd2f6b192e Mon Sep 17 00:00:00 2001 From: Leo <98382335+gaoziman@users.noreply.github.com> Date: Sat, 27 Sep 2025 14:21:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(config):=20=E9=9B=86=E6=88=90=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=A8=A1=E5=9D=97=E5=88=B0=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在plugins父模块中添加定时任务子模块依赖 - 在web启动模块中添加定时任务模块依赖 - 在主启动类中启用@EnableCoderJob注解 - 完成定时任务插件与框架的完整集成 --- coder-common-thin-plugins/pom.xml | 1 + coder-common-thin-web/pom.xml | 10 +++++----- .../java/org/leocoder/thin/web/CoderApplication.java | 2 ++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/coder-common-thin-plugins/pom.xml b/coder-common-thin-plugins/pom.xml index 641129f..959e3fd 100644 --- a/coder-common-thin-plugins/pom.xml +++ b/coder-common-thin-plugins/pom.xml @@ -24,6 +24,7 @@ coder-common-thin-oper-logs coder-common-thin-oss coder-common-thin-dict + coder-common-thin-job \ No newline at end of file diff --git a/coder-common-thin-web/pom.xml b/coder-common-thin-web/pom.xml index 81bdda6..ad2d596 100644 --- a/coder-common-thin-web/pom.xml +++ b/coder-common-thin-web/pom.xml @@ -44,11 +44,11 @@ ${revision} - - - - - + + org.leocoder.thin + coder-common-thin-job + ${revision} + diff --git a/coder-common-thin-web/src/main/java/org/leocoder/thin/web/CoderApplication.java b/coder-common-thin-web/src/main/java/org/leocoder/thin/web/CoderApplication.java index dc9aabd..d31d4de 100644 --- a/coder-common-thin-web/src/main/java/org/leocoder/thin/web/CoderApplication.java +++ b/coder-common-thin-web/src/main/java/org/leocoder/thin/web/CoderApplication.java @@ -11,6 +11,7 @@ import org.leocoder.thin.repect.anno.EnableCoderRepeatSubmit; import org.leocoder.thin.resultex.anno.EnableResultEx; import org.leocoder.thin.satoken.anno.EnableCoderSaToken; import org.leocoder.thin.dict.anno.EnableCoderDict; +import org.leocoder.thin.job.anno.EnableCoderJob; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.scheduling.annotation.EnableScheduling; @@ -31,6 +32,7 @@ import org.springframework.scheduling.annotation.EnableScheduling; @EnableOperLog @EnableCoderOss @EnableCoderDict +@EnableCoderJob @EnableScheduling @Slf4j @SpringBootApplication(scanBasePackages = "org.leocoder.thin")