title: No mapping for GET / in SpringMVC
body: <p>I am trying to build Spring MVC web app. 
  The problem is in my welcome-page (localhost:8080/). In my output log I am seeing:
   <strong>No mapping for GET /</strong> </p>
  
  <p>I set my welcome page to URL: <strong>"/spring-mvc-login"</strong> but everytime I restart app it is trying to look for URL <strong>"/"</strong> which is not serve in my controller. I want <strong>to redirect welcome page</strong> to URL <strong>"/spring-mvc-login"</strong> but it doesnt work.</p>
  
  <p>Funny thing is that when I type "localhost:8080/spring-mvc-login" it is working fine. The only problem is to redirect this URL to welcome-page.</p>
  
  <p><strong>WEB.XML</strong></p>
  
  <pre><code> &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/todo-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;welcome-file-list&gt;
          &lt;welcome-file&gt;/spring-mvc-login&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p><strong>todo-servlet.xml</strong></p>
  
  <pre><code>&lt;bean
          class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;property name="prefix"&gt;
          &lt;value&gt;/WEB-INF/views/&lt;/value&gt;
      &lt;/property&gt;
      &lt;property name="suffix"&gt;
          &lt;value&gt;.jsp&lt;/value&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>And <strong>Controller</strong></p>
  
  <pre><code>public class LoginController {
  
      @RequestMapping(value = "/spring-mvc-login", method= RequestMethod.GET)
      public String sayHello(){
          return "login";
      }
  
      @RequestMapping(value = "/spring-mvc-login", method = RequestMethod.POST)
          public String handleLoginRequest(@RequestParam String name, @RequestParam String password,
                                           ModelMap modelMap){
          modelMap.put("name",name);
          modelMap.put("password", password);
          return "welcome";
  
          }
  
  }
  </code></pre>
  
  <p>In <strong>Controller</strong> when i change @RequestMapping from "/spring-mvc-login "to "/" it is working fine of course but I want to redirect my welcome page to "/spring-mvc-login" not to "/". Thanks for help.</p>