Class DefaultAsyncTaskConfig

java.lang.Object
top.tangyh.basic.boot.config.DefaultAsyncTaskConfig
All Implemented Interfaces:
org.springframework.scheduling.annotation.AsyncConfigurer

@Configuration @EnableAsync(proxyTargetClass=true) @EnableConfigurationProperties(AsyncProperties.class) @ConditionalOnProperty(prefix="lamp.async", name="enabled", havingValue="true", matchIfMissing=true) public class DefaultAsyncTaskConfig extends Object implements org.springframework.scheduling.annotation.AsyncConfigurer
异步任务配置
Author:
zuihou
  • Constructor Details

    • DefaultAsyncTaskConfig

      public DefaultAsyncTaskConfig()
  • Method Details

    • getAsyncExecutor

      @Bean public Executor getAsyncExecutor()
      Specified by:
      getAsyncExecutor in interface org.springframework.scheduling.annotation.AsyncConfigurer
    • getAsyncUncaughtExceptionHandler

      public org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()
      Specified by:
      getAsyncUncaughtExceptionHandler in interface org.springframework.scheduling.annotation.AsyncConfigurer