title: How to deploy swagger generated spring code (Tomcat)
body: <p>I used the example given by SwaggerCodeGen to create a Server via SpringBoot.
  I build the project with maven and run it local. Everythings works fine.</p>
  
  <p>Now I want to deploy this project on a tomcat (version 7).
  So I changed the packing from jar to war</p>
  
  <pre><code>&lt;packaging&gt;war&lt;/packaging&gt;
  </code></pre>
  
  <p>and moved the *.war file to tomcat\webapps folder</p>
  
  <p>I tried to run </p>
  
  <blockquote>
    <p>localhost:8080/app</p>
  </blockquote>
  
  <p>which return an 404</p>
  
  <p>same with </p>
  
  <blockquote>
    <p>localhost:8080/app/swagger-ui.html <br />
    localhost:8080/v1/app/ <br />
    localhost:8080/v1/app/api-docs</p>
  </blockquote>
  
  <p>Unfortunatly, I have got no experience with tomcat. <br />
  The Project doesn't contain a web.xml. Is it necessary?
  Do I need to create a Servlet?</p>
  
  <p>Any help would be appreciated.</p>