title: Not finding request mapping within spring controller
body: <p>I'm just trying to create a simple spring web app. When I try to navigate to <code>http://localhost:8080/spring-test/VIEW/VIEW I receive 404 error :</code> </p>
  
  <pre><code>HTTP Status 404 - /spring-test/VIEW/VIEW
  
  type Status report
  
  message /spring-test/VIEW/VIEW
  
  description The requested resource (/spring-test/VIEW/VIEW) is not available.
  </code></pre>
  
  <p>Is my below config correct ?</p>
  
  <p>TestController.java : </p>
  
  <pre><code>package com;
  
  import org.springframework.stereotype.Controller;
  import org.springframework.ui.ModelMap;
  import org.springframework.web.bind.annotation.RequestMapping;
  
  
  @Controller
  @RequestMapping("VIEW")
  public class TestController {
  
      @RequestMapping("VIEW")
      public String showView(final ModelMap argMap) {
          return "test.jsp";
      }
  
  }
  </code></pre>
  
  <p>applicationContext.xml : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"&gt;
  
  
   &lt;bean id="myController" class="com.TestController"&gt;
  
  &lt;/bean&gt;
  
   &lt;bean id="portletModeHandlerMapping" class="org.springframework.web.portlet.handler.PortletModeHandlerMapping"&gt;
          &lt;property name="order" value="0" /&gt;
          &lt;property name="portletModeMap"&gt;
              &lt;map&gt;
                  &lt;entry key="view" value-ref="myController" /&gt;
              &lt;/map&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>web.xml : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;web-app
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      id="WebApp_ID"
      version="2.5"&gt;
  
      &lt;display-name&gt;Spring3MVC&lt;/display-name&gt;
  
  
      &lt;context-param&gt;
          &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
          &lt;param-value&gt;/WEB-INF/spring/*.xml&lt;/param-value&gt;
      &lt;/context-param&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;spring&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/applicationContext.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;spring&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.html&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>Project layout : </p>
  
  <p><img src="https://i.stack.imgur.com/6Pcid.png" alt="enter image description here"></p>