beetlsql3-dev
Mlxa0324 2 years ago
parent a7fcbbe109
commit 8bebcff7e1

@ -1,11 +1,10 @@
package com.ibeetl.admin.core.conf;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
import org.springframework.context.annotation.Bean;
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 java.lang.reflect.Method;
@ -19,11 +18,12 @@ import java.util.concurrent.ThreadPoolExecutor;
* @Author: 87966
* @Date: 2022/12/8 10:48
*/
@Configuration
@EnableAsync
@Slf4j
//@Configuration
//@EnableAsync
public class AsyncConfig implements AsyncConfigurer {
private static final Logger log = LoggerFactory.getLogger(AsyncConfig.class);
@Override
@Bean("taskExecutor")
public Executor getAsyncExecutor() {

Loading…
Cancel
Save