mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 21:00:53 +08:00 
			
		
		
		
	chore: 开发环境默认关闭任务调度配置,并调整任务调度服务端程序名称以增加区分
This commit is contained in:
		| @@ -26,7 +26,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; | |||||||
|  * @since 2024/6/25 22:24 |  * @since 2024/6/25 22:24 | ||||||
|  */ |  */ | ||||||
| @SpringBootApplication | @SpringBootApplication | ||||||
| public class ContinewAdminJobApplication { | public class JobServerApplication { | ||||||
| 
 | 
 | ||||||
|     public static void main(String[] args) { |     public static void main(String[] args) { | ||||||
|         SpringApplication.run(com.aizuda.snailjob.server.SnailJobServerApplication.class, args); |         SpringApplication.run(com.aizuda.snailjob.server.SnailJobServerApplication.class, args); | ||||||
| @@ -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.common.event.SnailClientStartingEvent; | ||||||
| import com.aizuda.snailjob.client.starter.EnableSnailJob; | import com.aizuda.snailjob.client.starter.EnableSnailJob; | ||||||
| import org.slf4j.LoggerFactory; | import org.slf4j.LoggerFactory; | ||||||
|  | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | ||||||
| import org.springframework.context.annotation.Configuration; | import org.springframework.context.annotation.Configuration; | ||||||
| import org.springframework.context.event.EventListener; | import org.springframework.context.event.EventListener; | ||||||
|  |  | ||||||
| @@ -34,6 +35,7 @@ import org.springframework.context.event.EventListener; | |||||||
|  */ |  */ | ||||||
| @Configuration | @Configuration | ||||||
| @EnableSnailJob | @EnableSnailJob | ||||||
|  | @ConditionalOnProperty(prefix = "snail-job", value = "enabled", havingValue = "true", matchIfMissing = true) | ||||||
| public class SnailJobConfiguration { | public class SnailJobConfiguration { | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|   | |||||||
| @@ -289,6 +289,7 @@ avatar: | |||||||
|  |  | ||||||
| --- ### Snail Job 配置 | --- ### Snail Job 配置 | ||||||
| snail-job: | snail-job: | ||||||
|  |   enabled: false | ||||||
|   # 客户端地址(默认自动获取本机 IP) |   # 客户端地址(默认自动获取本机 IP) | ||||||
|   #host: 127.0.0.1 |   #host: 127.0.0.1 | ||||||
|   # 客户端端口(默认:1789) |   # 客户端端口(默认:1789) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user