Best Of Hello World: Startup Source for Jersey 2
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Web
src/main/java/blog/panditmandar/code/jersey
.gitignore
README.md
pom.xml

README.md

Jersey2

Best Of Hello World: Jersey 2

Say Hello

This is a simple example of REST API creation with Jersey 2. This project gives an idea about how to use Jersey 2 HTTP Request and Response in a Controller.

Getting Started

This sample code is fully executable on its own based on the prerequisites are set up properly.

Prerequisites

You are required to have few tools before you start with using the source code.

  • JDK (1.8 or above)
  • Maven
  • IDE (Recommended - Eclipse)
  • Tomcat or JBoss (Any Web Server to run this web Application)
  • Git

Install JDK, Maven and Git as first step, before you get the the code base setup.

Setup Code Base

Use below URL to Clone Source Code

git clone https://github.com/get2mandar/Jersey2.git

Build a Project using Maven by Command Line.
Change Directory to Downloaded Project Directory and execute below Maven Command.

mvn clean install

Run

Run the Java Class blog.panditmandar.code.jersey.RESTJerseyHelloWorldApp to execute this Application.