线程池配置

master
anthonywj 2 years ago
parent 4465cc57e7
commit ec2cbf7c68

@ -11,8 +11,8 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.util.concurrent.Executor; import java.util.concurrent.Executor;
@EnableAsync //@EnableAsync
@Configuration //@Configuration
public class TaskExecutorConfig implements AsyncConfigurer { public class TaskExecutorConfig implements AsyncConfigurer {
private static final Logger log = LoggerFactory.getLogger(TaskExecutorConfig.class); private static final Logger log = LoggerFactory.getLogger(TaskExecutorConfig.class);

Loading…
Cancel
Save