we specify following activity
<packaging>war</packaging>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!-- this will get rid of version info from war file name -->
<finalName>masterservice</finalName>
</configuration>
</plugin>
</plugins>
</build>
And we add in spring boot main class
extends SpringBootServletInitializer
protected SpringApplicationBuilder configure (SpringApplicationBuilder builder) {
return builder.sources(MasterServiceApplication.class);
}
Comments
Post a Comment