[1] Clone DropWizard HelloWorld demo from github
git clone https://github.com/timmackinnon/dropwizard-helloworld.git
[2] Build (maven) application
cd into the folder dropwizard-helloworld
run maven command
mvn package
[3] Run (java) application
java -jar target/dropwizard-helloworld-1.0-SNAPSHOT.jar server hello-world.yml
[4] Test via browser
http://localhost:8080/hello-world
http://localhost:8080/hello-world?name=Successful+Dropwizard+User
No comments:
Post a Comment