title: URL Mapping to Method in Spring without annotations
body: <p>I was using spring annotations to map url to method, as shown in below code.</p>
  
  <pre><code>@Controller
  public class HomeController {
  
      @RequestMapping(value="/admin/dashboard.htm" ,method=RequestMethod.GET)
      public String dashboard(HttpServletRequest request,HttpServletResponse response) {
         .....
         return "success";
      } 
  
  } 
  </code></pre>
  
  <p>I have removed spring annotations by spring xml.</p>
  
  <p>Previously I was accessing method using 
  <strong>localhost:8888/admin/dashboard.htm</strong> url.</p>
  
  <p>Now without annotations I need to use <strong>localhost:8888/home/dashboard.htm</strong> url to access method. I am using Controller Class Name HandlerMapping now.</p>
  
  <p>What i need is, i want to access dashboard method using previous url <strong>localhost:8888/admin/dashboard.htm</strong> without annotations. </p>