|
|
|
@@ -3,9 +3,10 @@ package com.iformall.config; |
|
|
|
|
|
|
|
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
import org.springframework.scheduling.annotation.AsyncConfigurer; |
|
|
|
import org.springframework.scheduling.annotation.EnableAsync; |
|
|
|
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
@@ -14,7 +15,8 @@ import java.lang.reflect.Method; |
|
|
|
import java.util.concurrent.Executor; |
|
|
|
import java.util.concurrent.ThreadPoolExecutor; |
|
|
|
|
|
|
|
@Component |
|
|
|
@Configuration |
|
|
|
@EnableAsync |
|
|
|
public class AsyncConfig implements AsyncConfigurer { |
|
|
|
private Logger logger = LoggerFactory.getLogger(getClass()); |
|
|
|
|
|
|
|
|