Spring Boot thread asynchronous call and the use of thread pool
1, Asynchronous call
@EnableAsync enables asynchronous calls
Start class addition@EnableAsync annotation
@SpringBootApplication
@EnableAsync
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
Create asynchronous / synchronous method ...
Posted on Sun, 07 Nov 2021 21:21:53 -0500 by passagewds