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
Reinstate dependency injection support for legacy JSR-250 @javax.annotation.Resource
annotation
#30695
Comments
Could you ask this on StackOverflow? From the description of your problem it looks like a configuration error is likely. Please provide a minimal sample application and a detailed stack trace on the StackOverflow question so we can help you. |
I have fixed this issue since our previous version was using After the upgrade, this annotation can no longer be used for dependency injection. Instead, we now need to use My question is why can't spring-web be compatible with this problem at the framework level? Our business system is widely dependent on Spring. Although this is a small problem, it is a very important annotation for dependency injection. My suggestion is that it is best to be compatible at the framework level, which is more friendly to Spring users. |
This request is analogous to #27444. Since we opted to reinstate support for In light of that I am reopening this issue and changing its title. |
@javax.annotation.Resource
annotation
Understood, thank you |
spring-web 6.0.9
i just upgrade spring boot from 2.4.10 to 3.0.7. then spring-boot-starter-web auto upgrade from 5.3.9 to 6.0.9.
it have some compile error. i have fixed refer to the official document, but unfortunately all my spring bean cannot inject.
it make me annoy. in order to confirm the reason, i downgrade the springboot version to 2.4.10, and it works.
could someone help me?
see my snapshot upgrade version:
downgrade version:
The text was updated successfully, but these errors were encountered: