Exporting Spring Boot application as JAR file in eclipse
<p>I'm using the Spring STS in Eclipse to create a simple web-based spring boot project. I can run it fine in Eclipse, but when I try to export it as a JAR file I get:</p>

<pre><code>rg.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
</code></pre>

<p>My <code>public static void main</code>is located in <code>Application.java</code>, with the <code>@SpringBootApplication</code> annotation. </p>

<p>I've double checked all the Maven dependencies a hundred times.</p>

<p>What am I doing wrong?</p>