package org.jeecg.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

/**
 * @author DM
 * @date 2025/7/15 11:24
 * @description
 */
@Configuration
@EnableScheduling
public class SchedulingConfiguration {
    @Bean
    public Executor taskScheduler() {
        return Executors.newScheduledThreadPool(10);
    }
}