- check is user a root user.
- apt-get update
- apt-get install maven
- mvn test
- mvn package
- apt-get install tomcat9
- cp -rvf target/hello-world-0.0.1-SNAPSHOT.war /var/lib/tomcat9/webapps/app.war
abhay4321 / spring-boot-war-example Goto Github PK
View Code? Open in Web Editor NEWThis project forked from coolgourav147/spring-boot-war-example
Example project to build a WAR file out of a standard spring-boot project
Home Page: https://springhow.com/convert-spring-boot-jar-in-to-war/