Related questions
Question 45 - 2V0-72.22 discussion
Refer to the exhibit.
How can a response status code be set for No Content (204)? (Choose the best answer.)
A.
Annotate the update() handler method with @PutMapping(“/store/orders/{id”}”,HttpStatus.NO_CONTENT).
B.
Annotate the update() handler method with @ResponseStatus(HttpStatus.NO_CONTENT).
C.
Annotate the update() handler method with @ResponseEntity(204).
D.
The update() handler method cannot return a void type, it must return a ResponseEntity type.
Your answer:
0 comments
Sorted by
Leave a comment first