package org.dromara.common.job.config;
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
import org.springframework.context.annotation.Configuration;
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
import tech.powerjob.worker.PowerJobWorker;
|
|
/**
|
* 启动定时任务
|
* @author yhan219
|
* @since 2023/6/2
|
*/
|
@Configuration
|
@ConditionalOnBean(PowerJobWorker.class)
|
@ConditionalOnProperty(prefix = "powerjob.worker", name = "enabled", havingValue = "true")
|
@EnableScheduling
|
public class PowerJobConfig {
|
|
|
}
|