Skip to content

DanielaZacarias/sparkjava-war-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sparkjava-war-example

Build war with maven and sparkjava framework

Exercise:

  1. Create an instance
  2. Login into the console
  3. Clone the https://github.com/DanielaZacarias/sparkjava-war-example.git
  4. Install tomcat, java, maven
  5. Compile the code
  6. Upload the artifact to tomcat

Steps:

  1. Download a fresh Tomcat 8 distribution
  2. Clone this repository to your local machine
  3. Run mvn package
  4. Copy the generated sparkjava-hello-world-1.0.war to the Tomcat webapps folder (EC2 PATH: /usr/share/tomcat/webapps)
  5. Start Tomcat by running sudo systemctl start tomcat for EC2)
  6. Tomcat will automatically deploy the war
  7. Open [https://(IP public EC2)/sparkjava-hello-world-1.0/hello] in your browser

About

Build war with maven and sparkjava framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%