Skip to content

Instantly share code, notes, and snippets.

@radutoev
Created August 29, 2017 13:19
Embed
What would you like to do?
@RequestMapping(path = "/test", method = GET, produces = TEXT_PLAIN_VALUE)
public CompletableFuture<ResponseEntity> doAsync() {
logger.info("log1");
return CompletableFuture.supplyAsync(() -> {
logger.info("log2");
return ResponseEntity.ok("hello");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment