To my knowledge both serves the same purpose. Except the fact that @PathVariable is from Spring MVC and @PathParam is from JAX-RS. Any insights on
@PathVariable
@PathParam
@PathParam is a parameter annotation which allows you to map variable URI path fragments into your method call.
@PathVariable is to obtain some placeholder from the URI (Spring call it an URI Template)