What does the annotation @PathVariable do?

DWQA QuestionsCategory: Web Design HTMLWhat does the annotation @PathVariable do?
Editor Staff asked 1 month ago

What does the annotation @PathVariable do?

1 Answers
Editor Staff answered 1 month ago

@PathVariable annotation is used for passing the parameter with the URL that is required to get the data. Spring MVC provides support for URL customization for data retrieval using @PathVariable annotation.