Skip to content

Instantly share code, notes, and snippets.

@radutoev
Created August 29, 2017 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radutoev/b53135fa13fd049ef70b5510fb406763 to your computer and use it in GitHub Desktop.
Save radutoev/b53135fa13fd049ef70b5510fb406763 to your computer and use it in GitHub Desktop.
@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