Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why autodetect option not available for me?

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?

like image 622
javanoob Avatar asked Aug 23 '10 17:08

javanoob


1 Answers

It's not offering you autodetect because (according to the documentation), autodetect isn't an option. The valid options are byName, byType amd constructor.

Incidentally, this kind of autowiring is seriously old-fashioned. The annotations @Autowired and @Inject offer much better control over autowiring - see docs.

update: The autodetect option 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.

like image 67
skaffman Avatar answered Sep 26 '22 15:09

skaffman