-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Unable to inject bean by property name #33357
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
Comments
Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use the issue tracker only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug. |
Hi @funky-eyes, It looks like you might not be compiling your code with the Please see the Parameter Name Retention notes in the Wiki for details. If that solves the issue for you, it would be nice if you posted a comment here to confirm that. Cheers, Sam |
Thank you for your reply @sbrannen . I tried adding the following configuration during compilation, but for some reason it didn’t have any effect. However, it worked fine when I reverted to version 2.7. I will continue to investigate. If there are any updates, I will provide them in this issue. Regardless of the outcome, thank you both for your help.
|
Hi @sbrannen |
Affects: <Spring Framework version>
6.x
I encountered an issue where method parameter beans are not injected correctly after upgrading from Spring Boot 2.7.18 to 3.3.2
Everything worked fine with Spring Boot 2.7.18 and Spring 5.3.x, but after the upgrade, I am experiencing issues with dependency injection. Could you please help me with this problem? Thank you
When I use @qualifier, the issue is resolved, but making this change would require modifying too much code.
The text was updated successfully, but these errors were encountered: