title: Spring Data Rest with url of format /foo/{id}/bar
body: <p>To conform to our internal standards, we have URLs that take the format</p>
  
  <pre><code>/RESOURCE/{id}/COMPONENT
  </code></pre>
  
  <p>trying to do something like</p>
  
  <pre><code>@RestResource(path = "/RESOURCE/{id}/COMPONENT")
  public Optional&lt;Resource&gt; findById(long id);
  </code></pre>
  
  <p>doesn't work (it does accept requests at <code>/RESOURCE/{ID}</code> though). Is there a way to make this work?</p>