springboot项目中线程池的使用
在application.properties添加线程池配置项 spring.task.scheduling.thread-name-prefix=SysAsyncExecutor_ spring.task.scheduling.pool.size=10 spring.task.execution.thread-name-prefix=SysAsyncExecutor_ spring.task.execution.pool.core-size=6 spring.task.execution.pool.max-size=200 spring.task.execution.pool.queue-capacity=10 spring.task.execution.pool.keep-alive=60 spring.task.execution.pool.allow-core-thread-timeout=true 公共线程池配置类 @Slf4j @Configuration @EnableAsync public class ThreadAsyncConfigurer implements AsyncConfigurer { @Value("${spring.task.execution.thread-name-prefix:thread_name_prefix_}") private