|
|
@ -1,6 +1,7 @@ |
|
|
package com.spring.config; |
|
|
package com.spring.config; |
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
import org.springframework.scheduling.annotation.SchedulingConfigurer; |
|
|
import org.springframework.scheduling.annotation.SchedulingConfigurer; |
|
|
import org.springframework.scheduling.config.ScheduledTaskRegistrar; |
|
|
import org.springframework.scheduling.config.ScheduledTaskRegistrar; |
|
|
|
|
|
|
|
|
@ -12,6 +13,7 @@ import java.util.concurrent.Executors; |
|
|
* @description: 定时任务多线程控制器 |
|
|
* @description: 定时任务多线程控制器 |
|
|
* @date 2026-6-12 14:50 |
|
|
* @date 2026-6-12 14:50 |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@Configuration |
|
|
public class ScheduleConfig implements SchedulingConfigurer { |
|
|
public class ScheduleConfig implements SchedulingConfigurer { |
|
|
|
|
|
|
|
|
@Value("${task.pool.schedulerSize}") |
|
|
@Value("${task.pool.schedulerSize}") |
|
|
|