title: Spring MVC - No maping found for HTTP request with URI
body: <pre><code>    WEB-INF
       |
       +----static
             |
             +---- angular
                   |
                   +----angular.min.js
             +---- css       
             |
             +---- html
                   |
                   +----index.html
  </code></pre>
  
  <p>dispacher-servlet.xml contents are as below</p>
  
  <pre><code>&lt;mvc:annotation-driven/&gt;
  
  &lt;mvc:default-servlet-handler/&gt;
  
  &lt;mvc:resources mapping="/static/**" location="/WEB-INF/static/" /&gt;
  &lt;mvc:resources mapping="/static/html/**" location="/WEB-INF/static/html/" /&gt;
  &lt;mvc:resources mapping="/static/angular/**" location="/WEB-INF/static/angular/" /&gt;
  
  &lt;bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver"&gt;
        &lt;property name="order" value="1" /&gt;
        &lt;property name="mediaTypes"&gt;
          &lt;map&gt;
             &lt;entry key="json" value="application/json" /&gt;
             &lt;entry key="xml" value="application/xml" /&gt;
             &lt;entry key="rss" value="application/rss+xml" /&gt;
              &lt;entry key="html" value="text/html"/&gt;                
              &lt;entry key="js" value="text/javascript"/&gt;
          &lt;/map&gt;
        &lt;/property&gt;
  
      &lt;property name="defaultViews"&gt;
          &lt;list&gt;
              &lt;bean class="org.springframework.web.servlet.view.json.MappingJackson2JsonView" /&gt;
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean
      class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;property name="order" value="2" /&gt;
   &lt;/bean&gt;
  </code></pre>
  
  <p>content of web-inf/static/html/index.html is as below</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html ng-App&gt;
  &lt;head&gt;
      &lt;script src="angular.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h2&gt;Hello World!&lt;/h2&gt;
  &lt;input type="text" ng-model="name"/&gt;
  Welcome {{name}}
  </code></pre>
  
  <p>
  </p>
  
  <p>MyController class is as below</p>
  
  <pre><code>public class MyController {
      @RequestMapping(value = "/service/greeting/{name}", method = RequestMethod.GET)
       public String getGreeting(@PathVariable String name) {
        String result="Hello "+name; 
            return result;
       }
  
  @RequestMapping(value="/")  
  public ModelAndView showHomePage(ModelAndView mv ) {
      mv.setViewName("/static/html/index.html");
      return mv;
   }
  }
  </code></pre>
  
  <p>index page is up but what could be the issue with angular js which is showing GET 404 error in web console of browser?</p>