title: Spring Auto Scanning vs XML config Performance?
body: <p>In all the past projects i have worked till now ,
  beans are declared through XML bean configuration file for DI.</p>
  
  <p>But there is another way which saves us from verbose configuration i.e auto scan(i.e <code>&lt;context:component-scan&gt; .. &lt;/context:component-scan&gt;</code>),
  which detect and instantiate our beans from pre-defined project package, no more tedious beans declaration in in XML file.</p>
  
  <p>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?</p>