Spring 4 REST Resource Matching


  • Creating resources 
    • @Path 
  • HTTP method annotations (Uniform interface) 
    • @GET, @POST, @PUT, @DELETE 
  • Building REST application step by step 
  • Sub-resource locator

Creating a Resource using @Path Annotation

How to Create Root Resource Class? 

  • Create a POJO (Plain Old Java Object) class and annotate it with @Path annotation with relative URI path as value 
    • The base URI is the application context 
  • Implement resource methods inside the POJO with HTTP method annotations 
    • @GET, @PUT, @POST, @DELETE

You must have an active subscription to download PDF,Lab Zip and Recordings of this course topic.Please click the "Subscribe" button or the "Login" button if you already have an account.