title: Spring: @RequestMapping with multiple values
body: <p>I don't know this is the right approach but the easiest solution I can come up with in the moment.</p>
  
  <p>I want to use multiple values in @RequestMapping and do the business logic in the method according which value is called the method. Example:</p>
  
  <pre><code>@RequestMapping(value = {"/delete", "/save"}, method = RequestMethod.POST)
  public String crudOps(@ModelAttribute ("userForm") User user) {
  
     // find user in repository....
  
     if(value is delete) // don't know how to make this check
        delete(user);
     else
        save(user);
  }
  </code></pre>
  
  <p>How can I make that if statement work?</p>