Inside eclpise
You need to add to the main application class extends SpringBootServletInitializer
Could create a profile to use to only complie for war tomcat if this profile used:
SpringApplication application =
new SpringApplication(FproMollieauthApplication.class);
application.setAdditionalProfiles("tomcat");
application.run(args);
}
Then in the pom
<profiles>
<profile>
<id>tomcat</id>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
</profiles>
make sure on pom the packaging is set to war
<packaging>war</packaging>
to build in eclpse - first run maven clean
then maven install