New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FeignClient support for multiple inheritance #1029
Comments
Your issue not with Feign but your Spring Bean autoconfiguration. Your configuration will result in both Beans Since this is not a Feign issue, but a Spring Issue, I recommend that you reach out to folks there or on StackOverflow for more help. |
@kdavisk6 The problem stems from interface I have the same situation here, where I have multiple base service interfaces, e.g. one for a single object retrieve operation and one for a bulk retrieve operation, one for a single object create operation and one for a bulk update operation and so on. I then tried to assemble my client / service base interfaces as such
with the actual client and service then implementing / extending the interface
The reason for that is that I would like to further decompose my standard tests that need to be reused across multiple different modules. Why would I have to instead use
Dunno if the latter (FeignClient declaration) is possible, though. Regardless, in my case, the shared service interface and also the base interfaces that it is composed of, do not declare any request mappings and more or less act as marker interfaces with additional method declarations. Perhaps the check should be extended so as to prevent multiple inheritance from interfaces that do have request mapping annotations on their methods? and if no such annotated methods exist, then the check would succeed. I will look at the code and propose a PR to you. |
Hi Guys, I had to support two URI's in my project. For this, I made something like this:
preface:
Also,
It worked perfectly fine when I ran in my local workstation but failed in the staging Environment.
**The reason it said was:
I debugged in my local workstation using the stacktrace given above and found that for --Only single-level inheritance supported -- to happen, this condition--**if
-- should be false. When this happens, the above exception is thrown. However, I did not face this in my local system but in staging Environment.
** question**
In any time, the code above should provide only one the beans and should work as expected, right?
The text was updated successfully, but these errors were encountered: