title: Spring MVC - Mapping / to a controller
body: <p>How do I map the '/' request to a controller? The application's context name is reac and I want to bring up the login page when the context is sent to the server. I have REACController like this:</p>
  
  <pre><code>@Controller
  public class REACController {
  @RequestMapping(value="/", method=RequestMethod.GET)
      public String onLaunch() {
          return "LoginPage";
      }
  }
  </code></pre>
  
  <p>I face the dreaded 404 error for the context, 'resource /reac/ is not available'. What's the right way to handle requests to '/' through a Controller class?</p>