title: @RequestMapping Doesn't work- Did not find handler method
body: <p>I have problem in getting the <em>@RequestMapping</em> to work, I get the following logs; could you please help me understand the log?</p>
  
  <p>Log while booting:</p>
  
  <blockquote>
    <p>DEBUG o.s.web.servlet.DispatcherServlet - DispatcherServlet with name  'dispatcherServlet' processing GET request for [/ruler/webjars/test]</p>
    
    <p>DEBUG o.s.w.s.m.m.a.RequestMappingHandlerMapping - Looking up handler method for path /webjars/test</p>
    
    <p>DEBUG o.s.w.s.m.m.a.RequestMappingHandlerMapping - Did not find handler method for [/webjars/test]</p>
    
    <p>DEBUG o.s.w.s.h.SimpleUrlHandlerMapping - Matching patterns for  request [/webjars/test] are [/webjars/<strong>, /</strong>]</p>
    
    <p>DEBUG o.s.w.s.h.SimpleUrlHandlerMapping - URI Template variables for request [/webjars/test] are {}</p>
    
    <p>DEBUG o.s.w.s.h.SimpleUrlHandlerMapping - Mapping [/webjars/test] to HandlerExecutionChain with handler [ResourceHttpRequestHandler [locations=[class path resource [META-INF/resources/webjars/]], resolvers=[org.springframework.web.servlet.resource.PathResourceResolver@52454457]]] and 1 interceptor</p>
    
    <p>DEBUG o.s.web.servlet.DispatcherServlet - Last-Modified value for [/ruler/webjars/test] is: -1</p>
    
    <p>DEBUG o.s.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name 'dispatcherServlet': assuming HandlerAdapter completed request handling</p>
    
    <p>DEBUG o.s.web.servlet.DispatcherServlet - Successfully completed request</p>
  </blockquote>
  
  <p>Log while accessing <em>localhost:80/ruler/test</em>:</p>
  
  <blockquote>
    <p>DEBUG o.s.web.servlet.DispatcherServlet - DispatcherServlet with name
    'dispatcherServlet' processing GET request for [/ruler/test]</p>
    
    <p>DEBUG o.s.w.s.m.m.a.RequestMappingHandlerMapping - Looking up handler
    method for path /test</p>
    
    <p>DEBUG o.s.w.s.m.m.a.RequestMappingHandlerMapping - Did not find
    handler method for [/test]</p>
    
    <p>DEBUG o.s.w.s.h.SimpleUrlHandlerMapping - Matching patterns for
    request [/test] are [/**]</p>
    
    <p>DEBUG o.s.w.s.h.SimpleUrlHandlerMapping - URI Template variables for
    request [/test] are {}</p>
    
    <p>DEBUG o.s.w.s.h.SimpleUrlHandlerMapping - Mapping [/test] to
    HandlerExecutionChain with handler [ResourceHttpRequestHandler
    [locations=[class path resource [META-INF/resources/], class path
    resource [resources/], class path resource [static/], class path
    resource [public/], ServletContext resource [/]],
    resolvers=[org.springframework.web.servlet.resource.PathResourceResolver@4538856f]]]
    and 1 interceptor</p>
    
    <p>DEBUG o.s.web.servlet.DispatcherServlet - Last-Modified value for
    [/ruler/test] is: -1</p>
    
    <p>DEBUG o.s.web.servlet.DispatcherServlet - Null ModelAndView returned
    to DispatcherServlet with name 'dispatcherServlet': assuming
    HandlerAdapter completed request handling</p>
    
    <p>DEBUG o.s.web.servlet.DispatcherServlet - Successfully completed
    request</p>
  </blockquote>
  
  <p>Application.properties:</p>
  
  <pre><code>server.servlet.context-path=/ruler
  server.port=80
  </code></pre>
  
  <p>RestController:</p>
  
  <pre><code>    @RestController
  public class myController {
      private final MedicalService medicalService;
  
      @Autowired
      public myController(MedicalService medicalService) {
          this.medicalService = medicalService;
      }
  
      @RequestMapping(value="/test")
      public String testRest()
      {
          return "Yay";
      }
  }
  </code></pre>
  
  <p>No web.xml.</p>