This example demonstrates how to create simple Jersey application that utilises Spring 3 DI features based on Spring annotations, packaged into WAR file.
The mapping of the URI path space is presented in the following table:
URI path | Resource class | HTTP methods |
---|---|---|
/spring-resource | SpringRequestResource | GET |
/spring-resource/goodbye | SpringRequestResource | GET |
/spring-resource/norwegian-goodbye | SpringRequestResource | GET |
Run the example as follows:
mvn clean compile exec:java
This deploys the example using Grizzly container.