mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-10 20:57:14 +08:00
chore: 开发环境默认关闭任务调度配置,并调整任务调度服务端程序名称以增加区分
This commit is contained in:
@@ -23,6 +23,7 @@ import com.aizuda.snailjob.client.common.appender.SnailLogbackAppender;
|
||||
import com.aizuda.snailjob.client.common.event.SnailClientStartingEvent;
|
||||
import com.aizuda.snailjob.client.starter.EnableSnailJob;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.event.EventListener;
|
||||
|
||||
@@ -34,6 +35,7 @@ import org.springframework.context.event.EventListener;
|
||||
*/
|
||||
@Configuration
|
||||
@EnableSnailJob
|
||||
@ConditionalOnProperty(prefix = "snail-job", value = "enabled", havingValue = "true", matchIfMissing = true)
|
||||
public class SnailJobConfiguration {
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user