I'm trying to access the @PathVariables defined in "MyClass"'s @RequestMapping parent. Simplified screnario:
@RestController
@RequestMapping(value = "some/path/{with}/{multiple}/{variables}")
public class ParentClass {...}
This class is sort of a product's base class and should not be edited. Therefore I'm extending 'ParentClass'. In 'MyClass' I want to do something like this:
@GetMapping("/{another}")
public Object get(@PathVariable("another") String another) {...}
I think this is allowed (didn't test yet), but I don't see how I would get all PathVariables that are already defined with 'ParentClass'.
Any idea/ RTFM reference on that is very much appreciated.