tree: 16e7f77802d0216369b94a71f1a2ad3d33667f9b [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.MD
examples/servlet3-webapp/README.MD

Servlet 3 Example

This example demonstrates how to use advantages of Servlet v3 and how to configure Jersey application with this version of Jersey. JAX-RS resource returns the usual text

Contents

The mapping of the URI path space is presented in the following table:

URI pathResource classHTTP methods
/catCatResourceGET
/dogDogResourceGET

Running the Example

Run the example using Jetty as follows:

mvn clean package jetty:run

Go to the URL: