title: Spring @GetMapping doesn't work for child resource
body: <p>I have a controller looks like this.</p>
  
  <pre><code>@RestController("/some")
  public class SomeController {
  
      @GetMapping(produces = {MediaType.APPLICATION_JSON_VALUE})
      public ResponseEntity&lt;?&gt; read(...) {
          ...
      }
  
      @GetMapping(path = "{id:\\d+}", produces = ...)
      public ResponseEntity&lt;Some&gt; readSingle(@PathVariable(name = "id") final int id) {
          ...
      }
  }
  </code></pre>
  
  <p>The controller works for parent.</p>
  
  <pre><code>curl http://.../some
  </code></pre>
  
  <p>But the child resource returns the same with <code>/some</code>.</p>
  
  <pre><code>curl http://.../some/2 // returns the same with /some
  </code></pre>
  
  <p>What did I do wrong?</p>