You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, in java, the controller is able to deal only with MyDto instances. The controller is NOT accepting an arbitrary MyInterface instance. The doSomething method is available only once - with the MyDto parameter.
How to reproduce
// data structurespublicinterfaceMyInterface {}
publicclassMyDtoimplementsMyInterface {}
// controller and its interfacepublicinterfaceGenericInterface<TextendsMyInterface> {
voiddoSomething(Tthing);
}
@RequestMapping("/something")
@RestControllerpublicclassConcreteControllerimplementsGenericInterface<MyDto> {
@GetMapping@OverridepublicvoiddoSomething(@RequestBodyMyDtothing) {
}
}
I have a controller that inherits form a generic interface:
The controller itself is using a concrete implemenations of the interface:
This results in two different client methods generated by typescript generator:
However, in java, the controller is able to deal only with
MyDto
instances. The controller is NOT accepting an arbitraryMyInterface
instance. ThedoSomething
method is available only once - with theMyDto
parameter.How to reproduce
Main class:
Actual Result
Expected Result
The text was updated successfully, but these errors were encountered: