I have the following classes:
abstract class BaseController { Handler handler; BaseController() { this.handler = handler; } @GetMapping("get") String get() { return handler.handle(); } } class SubControllerA extends BaseController { SubController() { super(SpecificHandlerA()); } } class SubControllerB extends BaseController { SubController() { super(SpecificHandlerB()); } } Is it possible to use the class-names of the implementing classes in the GetMapping, without overriding get(), so that I have two endpoints .../get/subcontrollera and .../get/subcontrollerb.