In Spring Boot (and Spring MVC), both @PathVariable and @RequestParam are used to extract data from an incoming HTTP request and bind it to method parameters in your controller. However, they extract data from different parts of the URL and are used for different purposes.