title: Override @RequestMapping method using inheritance
body: <p>In my Java Spring MVC 4 project, I have an AbstractRESTController with an update method:</p>
  
  <pre><code>@RequestMapping(
          value="/{id}",
          method=RequestMethod.PUT,
          consumes={MediaType.APPLICATION_JSON_VALUE}
  )
  public @ResponseBody ResponseEntity&lt;T&gt; update(@PathVariable ID id, 
      @RequestParam String token, @RequestBody T json) {
          [do fancy stuff]
  }
  </code></pre>
  
  <p>and an extending class, let's call it <code>MyController</code>. Usually I want to use the method from the abstract class, but in <code>MyController</code> I have a special case (yay!), so I need to do further work. </p>
  
  <p>My idea was to just override the <code>@RequestMapping</code> in the child class, do my <code>additional fancy stuff</code> and afterwards call the super class' update method from the <code>MyController.update</code> method. But this does not work, because I get an ambiguous mapping error during compilation.</p>
  
  <p>Is there a way to make Spring override the parent class request mapping? I would like to avoid splitting the routes.</p>