i’m spring2.5, i normally use @autowired for DI. If i not wrong, in spring3, we can use @Inject for similar feature right? please comment. I tried to add @Inject instead of @autowired but doesnt work. need extra library?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If by “doesn’t work” you mean that the annotation can’t be resolved, then yes, you need a JSR-330 API library. You can download it here.
Or if you use maven: