config/TaskSchedulerConfig.java

JeecgBoot · jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/TaskSchedulerConfig.java · java · Apache-2.0
infra

Spring Boot configuration providing a ThreadPoolTaskScheduler bean for scheduled tasks.

// Source: https://github.com/jeecgboot/JeecgBoot | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package org.jeecg.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;

/**
 * 任务调度器配置
 * 提供 ThreadPoolTaskScheduler Bean 用于 AI RAG 流程调度等功能
 * 仅当容器中不存在 ThreadPoolTaskScheduler 时才创建
 *
 * @author jeecg
 */
@Slf4j
@Configuration
public class TaskSchedulerConfig {

    @Bean
    @ConditionalOnMissingBean(ThreadPoolTaskScheduler.class

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key