title: What to do with annotations after setting metadata-complete="true" (which resolved slow Tomcat 7 start-up)?
body: <p>Seems like the slow Tomcat 7 startup problem can be resolved with "metadata-complete" set to "true" in the web.xml, like so:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app metadata-complete="true" id="WebApp_ID" version="3.0"...
  </code></pre>
  
  <p>The problem is that Tomcat scans for annotations at startup, and this significantly slows it down. My time is cut down from 25 secs to 5 secs. (More info here: <a href="http://www.copperykeenclaws.com/tomcat-and-servlet-3-0-web-configuration/" rel="noreferrer">Tomcat and Servlet 3.0 Web Configuration</a>)</p>
  
  <p>However, I have some annotations in my code, like:</p>
  
  <pre><code>@ManagedBean
  @RequestScoped
  @Override
  ...
  </code></pre>
  
  <p>I am confused - will my code work after I have set metadata-complete="true"? Do I have to remove annotations and move everything into web.xml? </p>