SpringBoot 教程之处理异步请求
@EnableAsync 注解
要使用 @Async,首先需要使用 @EnableAsync 注解开启 Spring Boot 中的异步特性。
@Configuration
@EnableAsync
public class AppConfig {
}
...大约 3 分钟
@EnableAsync 注解要使用 @Async,首先需要使用 @EnableAsync 注解开启 Spring Boot 中的异步特性。
@Configuration
@EnableAsync
public class AppConfig {
}