tree: 8f82083384ea04255b457563238eabc55ae748da [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: