package com.sdut.labex.config;

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

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * File: ThreadPoolConfig
 * Created: 2023/6/21
 * Author: springforest
 * Description:
 */
@Configuration
public class ThreadPoolConfig {
    @Bean
    public ExecutorService getPool() {
        return Executors.newFixedThreadPool(5);
    }
}
