下面列出了怎么用org.springframework.scheduling.annotation.AsyncConfigurerSupport的API类实例代码及写法,或者点击链接到github查看源代码。
@Bean
public AsyncConfigurer customAsyncConfigurer() {
return new AsyncConfigurerSupport() {
@Override
public Executor getAsyncExecutor() {
return new SimpleAsyncTaskExecutor("customAsyncConfigurer");
}
};
}