Package com.bytedesk.core.config
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.task.AsyncTaskExecutor定义 applicationTaskExecutor bean Spring Boot 3.5.x 不再自动创建此 bean,但 Flowable 等框架需要它Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.scheduling.annotation.AsyncConfigurer
getAsyncUncaughtExceptionHandler
-
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
- Specified by:
getAsyncExecutorin interfaceorg.springframework.scheduling.annotation.AsyncConfigurer
-