I am trying to use autowire=”autodetect”..
In eclipse code suggest does not show me autodetect as the option..But it shows other values like byname,bytype,constructor..
whats missing in my application?
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.
It’s not offering you
autodetectbecause (according to the documentation),autodetectisn’t an option. The valid options arebyName,byTypeamdconstructor.Incidentally, this kind of autowiring is seriously old-fashioned. The annotations
@Autowiredand@Injectoffer much better control over autowiring – see docs.update: The
autodetectoption was deprecated as of Spring 3.x, and so it no longer appears in the documentation. It should still work, however (see the javadoc), so I was wrong to originally say that it wasn’t an option.