S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What does the @PathVariable annotation do?

  • (A) Maps query parameters to method arguments
  • (B) Binds URL template variables to method parameters
  • (C) Provides access to application path
  • (D) Defines the context path
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@PathVariable binds URI template variables to method parameters.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.