-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Generic Type error in spring boot 3.4.1 #34166
Comments
Hi, please share more about your issue's detail . or send us gihub link of your project if it is publicly available . |
I have a similar problem, but with beans of type java.util.Map. If I don't set @qualifier, all my Map beans are just empty and it causes NPE due to |
@kumardhrubajyoti and @xeruvimov please share a small sample we can run ourselves that reproduces the problem. You can attach a zip here or push the code to a separate GitHub repository. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
looks like a duplicate of #34119 |
Thank you for trying to help @zyro23 but your comment switched off the feedback label that's waiting on a repro. It very well might be a duplicate but we'd like to hear from those that are affected one way or the other. Right now, the issue doesn't have enough details. |
I ve below code :
getting error at ->
Field genericService in ControllerGenericImpl required a single bean, but 12 were found:
Action:
Consider marking one of the beans as @primary, updating the consumer to accept multiple beans, or using @qualifier to identify the bean that should be consumed.
This is coming in spring boot 3.4.1 in 3.4.0 or below it was working properly.
The text was updated successfully, but these errors were encountered: