In all the past projects i have worked till now , beans are declared through XML bean configuration file for DI.
But there is another way which saves us from verbose configuration i.e auto scan(i.e <context:component-scan> .. </context:component-scan>
),
which detect and instantiate our beans from pre-defined project package, no more tedious beans declaration in in XML file.
So i am sure there must be some downside of auto scan approach. So any comments when we should go for auto scan and when not?