Skip to content

Commit

Permalink
chore: 开发环境默认关闭任务调度配置,并调整任务调度服务端程序名称以增加区分
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Aug 1, 2024
1 parent 97acf52 commit ffe75e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @since 2024/6/25 22:24
*/
@SpringBootApplication
public class ContinewAdminJobApplication {
public class JobServerApplication {

public static void main(String[] args) {
SpringApplication.run(com.aizuda.snailjob.server.SnailJobServerApplication.class, args);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
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;

Expand All @@ -34,6 +35,7 @@
*/
@Configuration
@EnableSnailJob
@ConditionalOnProperty(prefix = "snail-job", value = "enabled", havingValue = "true", matchIfMissing = true)
public class SnailJobConfiguration {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ avatar:

--- ### Snail Job 配置
snail-job:
enabled: false
# 客户端地址(默认自动获取本机 IP)
#host: 127.0.0.1
# 客户端端口(默认:1789)
Expand Down

0 comments on commit ffe75e1

Please sign in to comment.