spring boot 使用TaskExecutor实现异步任务

1.新增配置类,开启异步任务支持java @Configuration //声明配置类 @EnableAsync //开启异步任务支持 public class TaskExecutorConfig implements AsyncConfigurer { @Override public Executor getAsyncExecutor() {
相关文章
相关标签/搜索