S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to map a request parameter to a method parameter?

  • (A) @PathVariable
  • (B) @RequestParam
  • (C) @Param
  • (D) @GetVariable
  • Correct Answer - Option(B)
  • Views: 12
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@RequestParam is used to extract query parameters from the URL.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.