S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to map HTTP POST requests?

  • (A) @PostMapping
  • (B) @GetMapping
  • (C) @PutMapping
  • (D) @RequestMapping(method=RequestMethod.POST)
  • Correct Answer - Option(A)
  • Views: 10
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@PostMapping is a shortcut for @RequestMapping(method=RequestMethod.POST).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.