S

Satya • 3.38K Points
Extraordinary

Q. Which annotation is used to read values from the URL path?

  • (A) @RequestParam
  • (B) @PathVariable
  • (C) @Autowired
  • (D) @Bean
  • Correct Answer - Option(B)
  • Views: 11
  • Filed under category Spring MVC
  • Hashtags:

Explanation by: Satya
@PathVariable binds values from URI templates to method parameters.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.