@Configuration
@EnableAsync
@EnableScheduling
public class ExecutorConfiguration
extends org.springframework.scheduling.annotation.AsyncConfigurerSupport
| 构造器和说明 |
|---|
ExecutorConfiguration(DreamProperties dreamProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.concurrent.Executor |
getAsyncExecutor() |
org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler |
getAsyncUncaughtExceptionHandler() |
public ExecutorConfiguration(DreamProperties dreamProperties)
@Bean(name="taskExecutor") public java.util.concurrent.Executor getAsyncExecutor()
getAsyncExecutor 在接口中 org.springframework.scheduling.annotation.AsyncConfigurergetAsyncExecutor 在类中 org.springframework.scheduling.annotation.AsyncConfigurerSupportpublic org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()
getAsyncUncaughtExceptionHandler 在接口中 org.springframework.scheduling.annotation.AsyncConfigurergetAsyncUncaughtExceptionHandler 在类中 org.springframework.scheduling.annotation.AsyncConfigurerSupport