title: No mapping found for HTTP request with URI + Spring MVC
body: <p>I am learning Spring MVC but got an issue on my first application and I am not able to resolve it. I checked all articles available but still, I guess somewhere I am making some mistake.</p>
  
  <p>Will you please able to help me to fix this?</p>
  
  <p><strong>Web.xml</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;listener&gt;
    &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
    &lt;/listener&gt;
  
    &lt;context-param&gt;
    &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
    &lt;param-value&gt;/WEB-INF/spring/applicationContext.xml&lt;/param-value&gt;
    &lt;/context-param&gt;
  
    &lt;servlet&gt;
    &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
    &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
    &lt;init-param&gt;
    &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
    &lt;param-value&gt;/WEB-INF/spring/dispatcher-servlet.xml&lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
  
  
    &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p><strong>Controller Class:</strong></p>
  
  <pre><code>@Controller
  public class HomeController
  {
      @RequestMapping("/home")
      @ResponseBody
      public String goHome()
      {
          return "Welcome Home";
      }
  }
  </code></pre>
  
  <p>is there something I am missing to configure? I know a very common issue but not getting the root cause.</p>
  
  <p>I am using Eclipse Oxygen, Spring 4.3.14 and WebLogic</p>
  
  <blockquote>
    <p><strong>Error:</strong></p>
    
    <blockquote>
      <p>atcherServlet:508 - FrameworkServlet 'dispatcher': initialization completed in 791 ms 2018-02-24 12:37:22 WARN  PageNotFound:1176 - No
      mapping found for HTTP request with URI [/springmvc-project] in
      DispatcherServlet with name 'dispatcher' &lt;24 Feb, 2018, 12:37:28,882
      PM IST>      2018-02-24 12:37:28 WARN  PageNotFound:1176 -
      No mapping found for HTTP request with URI [/springmvc-project/] in
      DispatcherServlet with name 'dispatcher' &lt;24 Feb, 2018, 12:37:38,883
      PM IST>      2018-02-24 12:43:12 WARN  PageNotFound:1176 -
      No mapping found for HTTP request with URI [/springmvc-project/home]
      in DispatcherServlet with name 'dispatcher' &lt;24 Feb, 2018,
      12:43:18,882 PM IST>    </p>
    </blockquote>
  </blockquote>
  
  <p><strong>dispatcher xml</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;mvc:annotation-driven /&gt;
  &lt;context:component-scan base-package="com.example.springmvc.controller" /&gt;
  </code></pre>