title: Spring MVC: get RequestMapping value in the method
body: <p>In my app, for certain reasons I would like to be able to get the value of the @RequestMapping in the corresponding methods, however, I can't find a way to do that. Here are more details about what I want:</p>
  
  <p>Suppose, I have a method like this: 
  <code><pre>
  @RequestMapping(value = "/hello")
  @ResponseBody
  public void helloMethod(AtmosphereResource atmosphereResource) {
  ...
  }
  </pre></code></p>
  
  <p>I would like to be able to get the mapping "/hello" within the method. I know, I can use placeholders in the mapping in order to get their values when the actual requests come, but I need a finite set of processable requests, and I don't want a chain of <code>if</code>s or <code>switch</code>es in my method.</p>
  
  <p>Is it at all possible?</p>