title: Load On Start Up using Annotation in JAVA
body: <p>I have this code,</p>
  
  <pre><code>@WebServlet(value="/initializeResources", loadOnStartup=1)
  public class InitializeResources extends HttpServlet {
  
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        System.out.println("HEREEEE");
    }
  
  }
  </code></pre>
  
  <p>But the servlet doesn't start when the web application is started.</p>
  
  <p>How use load on startup on Servlet Annotation?</p>
  
  <p>My Servlet API is 3.0 and I use Tomcat 7</p>