Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final Mono<ClientResponse> postResponse =
- client
- .post()
- .uri("/people")
- .body(Mono.just(record), Person.class)
- .accept(APPLICATION_JSON)
- .exchange();
- postResponse
- .map(ClientResponse::statusCode)
- .subscribe(status -> System.out.println("POST: " + status.getReasonPhrase()));
Add Comment
Please, Sign In to add comment