feat(config): 集成定时任务模块到项目配置
- 在plugins父模块中添加定时任务子模块依赖 - 在web启动模块中添加定时任务模块依赖 - 在主启动类中启用@EnableCoderJob注解 - 完成定时任务插件与框架的完整集成
This commit is contained in:
parent
a402d712de
commit
68e93fe853
@ -24,6 +24,7 @@
|
||||
<module>coder-common-thin-oper-logs</module>
|
||||
<module>coder-common-thin-oss</module>
|
||||
<module>coder-common-thin-dict</module>
|
||||
<module>coder-common-thin-job</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
||||
@ -44,11 +44,11 @@
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
<!-- 定时任务 -->
|
||||
<!-- <dependency> -->
|
||||
<!-- <groupId>org.leocoder.thin</groupId> -->
|
||||
<!-- <artifactId>coder-common-thin-job</artifactId> -->
|
||||
<!-- <version>${revision}</version> -->
|
||||
<!-- </dependency> -->
|
||||
<dependency>
|
||||
<groupId>org.leocoder.thin</groupId>
|
||||
<artifactId>coder-common-thin-job</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
<!-- 代码生成器 -->
|
||||
<!-- <dependency> -->
|
||||
<!-- <groupId>org.leocoder.thin</groupId> -->
|
||||
|
||||
@ -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")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user