title: spring boot with JAX-RS resources
body: <p>How do I configure JAX-RS resources with spring boot to be available with the embedded tomcat container?</p>
  
  <p>Below is the JAX-RS resource I have (Groovy):</p>
  
  <pre><code>@Component
  @Path('files')
  @CompileStatic
  class MyResource  {
      @Autowired
      FileRepository repository
  
      @GET
      @Path('{id}')
      @Produces(value = MediaType.APPLICATION_JSON)
      Response getFileDetails(@PathParam("id") String id) {
          println "getFileDetails called with $id"
          return Response.ok().build()
      }
  </code></pre>
  
  <p>}</p>
  
  <p>When I try http GET with localhost:8080/files/123 I get 404 error. What am I missing?
  I do not see errors during tomcat startup.</p>