Skip to content

Commit f5a7950

Browse files
committed
refactor: AsyncConfig 이중 초기화 제거
1 parent 741d8fa commit f5a7950

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/semosan/api/common/config/AsyncConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public Executor notificationTaskExecutor() {
2121
executor.setThreadNamePrefix("notif-async-");
2222
// 큐 가득 차면 호출 스레드가 직접 실행 → 메시지 유실 방지
2323
executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
24-
executor.initialize();
24+
// executor.initialize() 호출 안 함 → Spring이 afterPropertiesSet()에서 자동 호출
2525
return executor;
2626
}
2727
}

0 commit comments

Comments
 (0)