I\'ve generated a Spring Boot web application using Spring Initializer, embedded Tomcat, Thymeleaf template engine.Technologies used: Spring Boot 1.4.2.RELEASE, Spring 4.3.4
If you have a Spring Boot Application generally there is only one main class that has @SpringBootApplication , If you add another main method in the application some where , the gradle build process gets confused . So add the following at the root level of your build.gradle file
apply plugin: 'application'
mainClassName = 'packageNameAfter.srcMainJavaFolder.YourClassName'