package <%=packageName%>;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.SpringBootServletInitializer;

/**
 * This is an helper Java class that provides an alternative to creating a web.xml
 */
public class ApplicationWebXml extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        application.sources(Application.class);
        return application.main(Application.class);
    }
}

@@ -20,16 +20,115 @@
 ame%25%3E;%0A%0A
+import %3C%25=packageName%25%3E.config.Constants;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A
 import o
@@ -181,24 +181,24 @@
 ionBuilder;%0A
-
 import org.s
@@ -414,16 +414,99 @@
 izer %7B%0A%0A
+    private static final Logger log = LoggerFactory.getLogger(Application.class);%0A%0A
     @Ove
@@ -619,16 +619,63 @@
 lication
+.profiles(addDefaultProfile())%0A                
 .sources
@@ -703,54 +703,522 @@
     
+%7D%0A%0A
     
-return application.main(Application.class)
+/**%0A     * Set a default profile if it has not been set%0A     *%0A     * Please use -Dspring.active.profile=dev%0A     */%0A    private String addDefaultProfile() %7B%0A        String profile = System.getProperty(%22spring.active.profile%22);%0A        if (profile != null) %7B%0A            log.debug(%22Running with Spring profile(s) : %7B%7D%22, profile);%0A            return profile;%0A        %7D%0A%0A        log.debug(%22No Spring profile configured, running with default configuration%22);%0A        return Constants.SPRING_PROFILE_DEVELOPMENT
 ;%0A  

Fix the issue to not be able to run the war in tomcat. Still have an issue. Open a ticket on spring-boot (https://github.com/spring-projects/spring-boot/issues/278)