Question: what is the difference between path variables and request parameters?
Answer: As the name suggests, @RequestParam is used to get the request parameters from URL, also known as query parameters, while @PathVariable extracts values from URI. The required=false denotes that the query parameter can be optional, but the URL must have the same URI.