code-d / jersey-server-grizzly2

Jersey 2 Hello World Example with JSON and using Grizzly Example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jersey 2 Hello World Example with JSON and using Grizzly Example

This example demonstrates a basic setup of Jersey 2 with JSON running on Grizzly 2.

Contents

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

URI path Resource class HTTP methods Notes
/base/helloworld HelloWorldResource GET Returns Hello World!

Running the Example

Run the example as follows:

mvn clean compile exec:java

This deploys the example using Grizzly container.

About

Jersey 2 Hello World Example with JSON and using Grizzly Example

License:Apache License 2.0


Languages

Language:Java 100.0%