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
Check your application if you have multiple classes with public static void main(String[] args)
. Remove the one that you do not need. Specially if you generate the project with https://start.spring.io/
it comes with a class with main method in it.
If you do need all of the classes with main method just explicitly mention which one would to be boos-trapped up on application start up by mentioning it in the pom.