Skip to content

Instantly share code, notes, and snippets.

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