@EnableAsync 注解
要使用 @Async,首先需要使用 @EnableAsync 注解开启 Spring Boot 中的异步特性。
@Configuration
@EnableAsync
public class AppConfig {
}
2019年11月18日大约 3 分钟
@EnableAsync 注解要使用 @Async,首先需要使用 @EnableAsync 注解开启 Spring Boot 中的异步特性。
@Configuration
@EnableAsync
public class AppConfig {
}