Skip to content

Commit

Permalink
chore: ThreadPoolTaskExecutor의 corePoolSize를 2로 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanjaemo committed Dec 18, 2024
1 parent d09b48d commit dc8e063
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/balancetalk/global/config/AsyncConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class AsyncConfig implements AsyncConfigurer {
@Override
public Executor getAsyncExecutor() {
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setCorePoolSize(2);
executor.setThreadNamePrefix("Async task - ");
executor.initialize();
return executor;
Expand Down

0 comments on commit dc8e063

Please sign in to comment.