Class AsyncExecutorConfig

java.lang.Object
com.bytedesk.core.config.AsyncExecutorConfig
All Implemented Interfaces:
org.springframework.scheduling.annotation.AsyncConfigurer

@EnableAsync @Configuration public class AsyncExecutorConfig extends Object implements org.springframework.scheduling.annotation.AsyncConfigurer
async executor config https://www.baeldung.com/spring-async https://spring.io/guides/gs/async-method
  • Constructor Details

    • AsyncExecutorConfig

      public AsyncExecutorConfig()
  • Method Details

    • applicationTaskExecutor

      @Bean(name="applicationTaskExecutor") public org.springframework.core.task.AsyncTaskExecutor applicationTaskExecutor()
      定义 applicationTaskExecutor bean Spring Boot 3.5.x 不再自动创建此 bean,但 Flowable 等框架需要它
      Returns:
      AsyncTaskExecutor
    • getAsyncExecutor

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