title: Spring component annotation compile time scan
body: <p>My belief is that the Spring bootstraps</p>
  
  <ul>
  <li>ContextLoaderListener</li>
  <li>DispatcherServlet</li>
  </ul>
  
  <p>due to the instruction</p>
  
  <pre><code>&lt;context:component-scan base-package=" ..... " /&gt;
  </code></pre>
  
  <p>would perform component scans at app startup (or whenever instructed to) during run-time.</p>
  
  <p>Is there a way to instruct the compiler (perhaps thro a maven build plugin) to perform a one time static scan of annotated spring components during build/compile time, so that the bootstrap component scan is not performed, WITHOUT abandoning the use of component annotation?</p>
  
  <p>As a way to reduce startup load and latency.</p>