+1 vote
in Spring Framework Database Integration by
@RequestMapping(value = “/hospitals/{id}”, method = RequestMethod.GET) How to get the value of id in controller method?

Select the correct answer from below options:

a) @Variable(“id”)

b) @PathVariable(“id”)

c) None of the options

d) @RequestVariable(“id”)

@RequestMapping(“id�)

1 Answer

0 votes
by
@PathVariable(“id”) is used to get the value of id in controller method
...