title: Different RequestMapping value within same Controller
body: <p>There is an existing Controller that I want to add an additional get Method with a slightly modified logic. There is the <code>findAll</code> method and I want to add the <code>getMessages</code> method.</p>
  
  <pre><code>@RestController
  @RequestMapping(value = "/options", produces = MediaType.APPLICATION_JSON_VALUE)
  public class OptionController {
  
   ...Definitions etc...
  
   @RequestMapping(method = RequestMethod.GET)
      public ResponseEntity&lt;?&gt; findAll(@PageableDefault(size = Integer.MAX_VALUE) Pageable pageable) {
          Page&lt;Option&gt; page = optionRepository.findAll(pageable);
          return ok(pagingAssembler.toResource(page));
      }
  }
  </code></pre>
  
  <p>And below the new method:</p>
  
  <pre><code>@RequestMapping(value = "/optionsWelcome", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
  public ResponseEntity&lt;?&gt; getMessages(@PageableDefault(size = Integer.MAX_VALUE) Pageable pageable) {
      Page&lt;Option&gt; page = optionRepository.findAll(pageable);
      return ok(pagingAssembler.toResource(page));
  }
  </code></pre>
  
  <p>I am getting 404 for http calls to <code>/optionsWelcome</code> but <code>/options</code> works.</p>
  
  <p>Is it possible to have a controller with mappings for 2 different URLs or do I need to make a second controller?</p>