title: Spring Restfull Jax-RS annotation support
body: <p>I have following class and web.xml files.  Does spring framework supports jax-rs annotation such as <code>@PATH</code>, and <code>@PUT</code>, <code>@Consumes</code>...etc.</p>
  
  <p>In other word can I use <code>@PATH</code> instead of <code>@RequestMapping</code>  </p>
  
  <p><strong>Java:</strong></p>
  
  <pre><code>import org.springframework.stereotype.Controller;
  import javax.ws.rs.PUT;
  import javax.ws.rs.Path;
  
  @Controller
  @Path("/register")
  public class RegisterServices {
      @PUT
      @Path("/create")
      @Consumes(MediaType.APPLICATION_JSON)
      @Produces({"application/json"})
      public Response create(@Context HttpServletRequest requestContex,
                             @HeaderParam("Authorization") String authorization, 
                             String xMsisdn, String param) {}
  }
  </code></pre>
  
  <p><strong>web.xml</strong> </p>
  
  <pre class="lang-xml prettyprint-override"><code>    &lt;listener&gt;
          &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
      &lt;/listener&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Jersey REST Service&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;Jersey REST Service&lt;/servlet-name&gt;
          &lt;servlet-class&gt;
              org.springframework.web.servlet.DispatcherServlet
          &lt;/servlet-class&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  </code></pre>