Build war with maven and sparkjava framework
Steps:
-
Download a fresh Tomcat 8 distribution
-
Clone this repository to your local machine
-
Run mvn package
-
Copy the generated
sparkjava-hello-world-1.0.warto the Tomcatwebappsfolder -
Start Tomcat by running
bin\startup.bat(orbin\startaup.shfor Linux) -
Tomcat will automatically deploy the war
-
Open http://localhost:8080/sparkjava-hello-world-1.0/hello in your browser