|
@@ -12,9 +12,9 @@ public class ThreadPoolConfig {
|
12
|
@Bean(name = "taskExecutor")
|
12
|
@Bean(name = "taskExecutor")
|
13
|
public Executor taskExecutor() {
|
13
|
public Executor taskExecutor() {
|
14
|
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
|
14
|
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
|
15
|
- executor.setCorePoolSize(10);
|
15
|
+ executor.setCorePoolSize(20);
|
16
|
- executor.setMaxPoolSize(20);
|
16
|
+ executor.setMaxPoolSize(50);
|
17
|
- executor.setQueueCapacity(50);
|
17
|
+ executor.setQueueCapacity(150);
|
18
|
executor.setThreadNamePrefix("Async-");
|
18
|
executor.setThreadNamePrefix("Async-");
|
19
|
executor.initialize();
|
19
|
executor.initialize();
|
20
|
return executor;
|
20
|
return executor;
|