|
@@ -7,7 +7,6 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
|
import org.springframework.context.event.EventListener;
|
|
|
-import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
@@ -19,7 +18,6 @@ public class LoginEventListeners {
|
|
|
@Qualifier(ThreadPoolConfig.threadPoolTaskExecutor)
|
|
|
private ThreadPoolTaskExecutor threadPoolTaskExecutor;
|
|
|
|
|
|
- @Async
|
|
|
@EventListener
|
|
|
public void loginEvent(LoginEvent loginEvent) {
|
|
|
threadPoolTaskExecutor.execute(() -> {
|