title: 404 on Properly mapped SpringBoot RestController
body: <p>I'm experiencing a little issue that is wasting a lot of my time...</p>
  
  <p>I've created, for demonstration purposes, a simple SpringBoot application using the Eclipse New > Spring Starter Project.</p>
  
  <p>Here is my Application class:</p>
  
  <pre><code>package it.asirchia;
  
  //All needed imports
  
  @SpringBootApplication
  public class Application {
  
      public static HashMap&lt;Long,Book&gt; books = new HashMap&lt;Long, Book&gt;();
      public static HashMap&lt;Long,Editor&gt; editors = new HashMap&lt;Long, Editor&gt;();
      public static HashMap&lt;Long,Person&gt; authors = new HashMap&lt;Long, Person&gt;();
  
      public static void main(String[] args) {
          SpringApplication.run(Application.class, args);
      }
  }
  </code></pre>
  
  <p>Then I've created the <em>EditorsApis</em> Controller:</p>
  
  <pre><code>package it.asirchia.apis;
  
  //All needed imports
  
  @RestController
  @RequestMapping(value="/editors")
  public class EditorsApis {
  
      private static long counter = 0;
  
      @RequestMapping(value="/", method=RequestMethod.GET)
      public HashMap&lt;Long, Editor&gt; getAllEditor(){
          return Application.editors;
      }
  
      @RequestMapping(value="/", method=RequestMethod.POST)
      public void postNewEditor(@RequestBody Editor editor){
          Application.editors.put(counter++, editor);
      }
  
      @RequestMapping(value="/{editorid}", method=RequestMethod.PUT)
      public void updateEditor(@PathVariable long editorid,
                                  @RequestBody Editor editor){
          Application.editors.put(editorid, editor);
      }
  
      @RequestMapping(value="/{editorid}", method=RequestMethod.GET)
      public Editor getEditor(@PathVariable long editorid){
          return Application.editors.get(editorid);
      }
  
      @RequestMapping(value="/{editorid}", method=RequestMethod.DELETE)
      public void deleteEditor(@PathVariable long editorid){
          Application.editors.remove(editorid);
      }
  
  }
  </code></pre>
  
  <p>And an <em>AuthorsApis</em> and a <em>BooksApis</em> controllers that are very similar to the <em>EditorApis</em> one.</p>
  
  <p>Of course I've created too all the three Pojos:
  <strong>Editor.class</strong>, <strong>Person.class</strong> and <strong>Book.class</strong></p>
  
  <p>I've started up the Eclipse embedded Spring runtime and I can see that all the paths are properly mapped:</p>
  
  <blockquote>
    <p>INFO [main] s.w.s.m.m.a.RequestMappingHandlerMapping Mapped "
     {[/authors/],methods=[GET]}" onto public java.util.HashMap it.asirchia.apis.AuthorsApis.getAllAuthors()</p>
  </blockquote>
  
  <p>And so on and so forth for all the other Rest APIs I've implemented.
  The last three lines of the log are:</p>
  
  <blockquote>
    <p>Starting beans in phase 0</p>
    
    <p>Tomcat started on port(s): 8080 (http)</p>
    
    <p>Started Application in 5.547 seconds (JVM running for 6.169)</p>
  </blockquote>
  
  <p>Ok, for me wverything is properly configured, up and running. But when I try to invoke </p>
  
  <pre><code>GET /authors HTTP/1.1
  Host: localhost:8080
  </code></pre>
  
  <p>I obtain: </p>
  
  <pre><code>{
  "timestamp": 1507286437765,
  "status": 404,
  "error": "Not Found",
  "message": "No message available",
  "path": "/authors"
  }
  </code></pre>
  
  <p>And the same happens for <strong>ALL</strong> the REST APIs I've implemented.
  Any idea about the reason of this problem?
  Thank you.</p>