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
- Stash: Stash is used for storing the changes in temporary location.
Scenario : Lets suppose,we are working in one branch(login-feature), edit few files and added files to staging area. Now suddenly , we got new hotfix - live/production env , its emergency to fix in next 1 hour. But Git best practices says, either you commit your changes or undo the changes back. We want to store changes in temporary location ie your stash concept in git.
commands : git stash list //list all stashes git stash save "some messages" // creating an stash git stash show stash_name //describe the stash changes git stash apply // It will bring the stash changes out and also will keep one copy of stash entry in stash location. git stash pop // It will bring the stash changes out but it will delete the stash entry from stash location git stash drop // it will remove all entries from stash