Skip to content

ryctabo/jersey-init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jersey Init Example

This example demonstrate how to create a simple Jersey application, package it into WAR file and how to run it using Gretty.

Contents

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

URI Path Resource class HTTP method
/myresource MyResource GET

Application is configured by using a java class, which registers javax.ws.rs.core.Application descendant to get classes and singletons from it (see class MyApplication).

Running the example

Run the example as follows:

gradle clean appRun

This deploy the example using Gretty container. You can access the application at:

About

Project is used in my personal blog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages