refactor: 调整异步线程数
This commit is contained in:
parent
71c5042e71
commit
e8c3f23fdf
|
@ -16,7 +16,7 @@ public class AsyncConfig {
|
|||
public AsyncTaskExecutor taskExecutor() {
|
||||
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
|
||||
executor.setThreadNamePrefix("Async-Executor-");
|
||||
executor.setCorePoolSize(10);
|
||||
executor.setCorePoolSize(20);
|
||||
executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
|
||||
return executor;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue