title: Is web.xml required to deploy a spring boot application
body: <p>I was trying to package a spring boot application as a war. According to <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/howto-traditional-deployment.html" rel="noreferrer">this</a>, I modified my Application class:</p>
  
  <pre><code>@SpringBootApplication
  @EntityScan({"org.mdacc.rists.cghub.model"}) 
  @EnableJpaRepositories(basePackages = {"org.mdacc.rists.cghub.ws.repository"})
  public class Application extends SpringBootServletInitializer
  {
  
      public static void main( String[] args )
      {
          SpringApplication.run(Application.class, args);
      }
  
      @Override
       protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
           return application.sources(Application.class);
       }
  }
  </code></pre>
  
  <p>Also added the following in my pom.xml</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>When I package the project though, I got the following error:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project cg-web: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -&gt; [Help 1]
  </code></pre>
  
  <p>As I was reading upon spring boot application, I never saw anything about creating a web.xml. Is web.xml required in deploying spring boot application as war?</p>