title: Spring boot without embedded servlet container
body: <p>I have a spring-boot web application, but I don't want to start it in embedded Tomcat/Jetty. What is the correct way to disable embedded container? </p>
  
  <p>If I do smth like:</p>
  
  <pre><code>        &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;exclusions&gt;
             &lt;exclusion&gt;
                 &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                 &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
             &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>I keep getting </p>
  
  <pre><code>org.springframework.context.ApplicationContextException: Unable to start embedded container; 
  </code></pre>