|
|
|
@ -6,7 +6,7 @@ import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
import org.springframework.scheduling.annotation.AsyncConfigurerSupport;
|
|
|
|
|
import org.springframework.scheduling.annotation.AsyncConfigurer;
|
|
|
|
|
import org.springframework.scheduling.annotation.EnableAsync;
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
@ -20,7 +20,7 @@ import java.util.concurrent.ScheduledExecutorService;
|
|
|
|
|
*/
|
|
|
|
|
@EnableAsync(proxyTargetClass = true)
|
|
|
|
|
@Configuration
|
|
|
|
|
public class AsyncConfig extends AsyncConfigurerSupport {
|
|
|
|
|
public class AsyncConfig implements AsyncConfigurer {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
@Qualifier("scheduledExecutorService")
|
|
|
|
|