Generic type is not used sometimes [SPR-15364] #19928
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: declined
A suggestion or change that we don't feel we should currently apply
Vitaly Merenkov opened SPR-15364 and commented
Hello, I'm trying to create a hierarchy of REST controllers for objects which could be parents for another objects and not. I have a lot of sub types for parents and children and do not want to duplicate the same resources in every controller even with delegate pattern.
The sample code is attached. I can't reproduce an issue by some reason in this code as in real environment, but in any case it works not as expected.
The base controller from which every controller should be inherited:
The base controller for objects which could have children:
The implementation which works as expected:
Request example:
Output from logs:
The implementation which doesn't work as expected:
Request example:
Output from logs:
In second case I have incorrect request type. In real environment I have this error in logs:
The interesting part is that documentation generated by springfox is correct in any case.
Please suggest what should I change in configuration or fix this issue. I think it is related to #19039.
Attachments:
Issue Links:
The text was updated successfully, but these errors were encountered: