title: Spring Boot: SpringBootServletInitializer is deprecated
body: <p>I am trying to deploy Spring Boot app to JBoss by following <a href="http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-create-a-deployable-war-file" rel="noreferrer">this</a>. It worked well but <strong>SpringBootServletInitializer</strong> is deprecated in 1.4.0.RELEASE. Which one should I use?</p>
  
  <p>Maven depedency</p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;1.4.0.RELEASE&lt;/version&gt;
  &lt;/parent&gt;
  </code></pre>
  
  <p>Java Code</p>
  
  <pre><code> import org.springframework.boot.SpringApplication;
   import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
   import org.springframework.boot.autoconfigure.SpringBootApplication;
   import org.springframework.boot.context.web.SpringBootServletInitializer;
  
      @SpringBootApplication
      public class DemoApplication  extends SpringBootServletInitializer {
          public static void main(String[] args) {
              SpringApplication.run(DemoApplication.class, args);
          }
      }
  </code></pre>