Jersey Spring Integration Spring Helloworld WebApp Example
This example demonstrates how to create simple Jersey application that utilises Spring 3 DI features, packaged into WAR file.
The mapping of the URI path space is presented in the following table:
|URI path||Resource class||HTTP methods|
Application is configured by using web.xml, 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:
mvn clean package jetty:run
This deploys current example using Jetty web server. Once deployed, the application is ready to serve the following resources: