How to deploy Spring Boot Web App War file to Tomcat Server with Maven build



How to deploy Spring Boot Web App War file to Tomcat Server with Maven build

How to deploy Spring Boot Web App War file to Tomcat Server with Maven build

How to deploy Spring Boot Web App War file to Tomcat Server with Maven build

Link: http://javasampleapproach.com/spring-framework/spring-boot/deploy-spring-boot-web-app-war-file-tomcat-server-maven-build#2_Deploy_War_file_on_Tomcat

The tutorial is a guide to traditional deployment problem: “How to create a Spring Boot Web App War file with Maven then deploys it on Tomcat server”

I. Technologies
– Java 1.8
– Maven 3.3.9
– Spring Tool Suite – Version 3.8.1.RELEASE
– Spring Boot: 1.5.6.RELEASE
– Tomcat: apache-tomcat-8.5.20

II. Practice
1. Create a War file
– Create Spring Boot Web App
– extends SpringBootServletInitializer & override configure method
– Update build configuration: war
– Configure embedded servlet container dependency as provided

2. Deploy War file on Tomcat
– Build the project: maven clean install. Then go to target folder, we have a war file: SpringBootWarDeployment-0.0.1.war.

– Copy SpringBootWarDeployment-0.0.1.war to apache-tomcat-8.5.13webapps folder and rename it to javasampleapp.

– Go to apache-tomcat-8.5.13bin, then start: startup.bat(startup.sh)

Comments are closed.