Just curious to know in which scenario we should go for @RequestParam and @PathVariable. I know that:
@RequestParamtakes parameter value whereas@PathVariabletakes placeholder value@RequestParamcan be optional (required=false) while making request whereas@PathVariablevalue has to be provided.- When we want to use
@RequestParamwe have to know the property syntax but for@PathVariablenot required
Is there any other reason to go for specific one?