demo-rest-jersey-spring @ Codingpedia.org 100%

Prerequisites:

Install and run the project

  1. download/clone the project
  2. prepare the database
  3. change to the root folder of the project and excute the following maven command
    • mvn clean install jetty:run -Djetty.port=8888 -DskipTests=true
    • now the REST api is up and running with Jetty on localhost:8888

Note: you could run a similar configuration from Eclipse if you have the m2e plugin installed - see pic below

Note: after you mvn install the application, you can deploy the generated .war file in any web container like Tomcat for example.

Testing the project

From Maven (failsafe plugin)

Run the following maven command on the console in the root directory of the project

mvn clean install verify -Djetty.port=8888

OR

the same in Eclipse Eclipse run configuration

SoapUI (recommended)

Go to blog post

Tutorial – REST API design and implementation in Java with Jersey and Spring - complete explanation of this implementation.

Changelog

License

MIT © Codingpedia.org