Project described on in the blog post: "Tutorial – REST API design and implementation in Java with Jersey and Spring"
Switch branches/tags
Nothing to show
Clone or download

demo-rest-jersey-spring @ 100%


  • MySQL 5.5 or 5.6
  • IDE ( preffered Eclipse 4.3+)
  • JDK 1.7 (if you want to use Jetty 9 with the jetty-maven-plugin from project)
  • Maven 3.*

Install and run the project

  1. download/clone the project
  2. prepare the database
  1. 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


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.