Spring Boot 2 Async#
@Async rest controller#
Spring comes with @EnableAsync annotation and can be applied on application classes for asynchronous behavior. This annotation will look for methods marked with @Async annotation and run in background thread pools. The @Async
annotated methods can return CompletableFuture
to hold the result of an asynchronous computation.