Repository queries can be executed asynchronously using @Async annotation.
The result can be a Future, CompletableFuture and ListenableFuture. The method will return immediately upon invocation:
@asyncFuture findByName(String name);@asyncCompletableFuture findByName(String name);@asyncListenableFuture findByName(String name);