title: how to call request mapping method level through class level RequestMapping
body: <p>I did one simple program using spring. I got answer for method level RequestMapping when i did not use class level RequestMapping. But i want to use both class level and method level RequestMapping.  </p>
  
  <p>This is my controller code</p>
  
  <pre><code>package com.birthid;
  
  import org.springframework.stereotype.Controller;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestParam;
  import org.springframework.web.servlet.ModelAndView;
  
  @Controller
  @RequestMapping("/classLevel")
  public class Controaller1 
  {
       @RequestMapping("/spring")
       public ModelAndView display(@RequestParam("name") String name)
       {
           ModelAndView model=new ModelAndView("view");
           model.addObject("msg", name);
           return model;
       }      
  }
  </code></pre>
  
  <p>html code</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
     &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt;
     &lt;title&gt;Hello App Engine&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
     &lt;h1&gt;valith web application!&lt;/h1&gt;
     &lt;form action="/classLevel" method="get"&gt;
        name:&lt;input type="text" name="name"/&gt;&lt;br&gt;
        &lt;input type="submit" value="clik me"/&gt;
     &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>when i give this url in address bar. i got exact output. <code>http:localhost:8888/classLevel/spring?name=john</code></p>
  
  <p>but when i press button where i design in html page, that is giving error.</p>