What is the difference between these two---
@Controller
public class HomeController {
@RequestMapping("/home")
public ModelAndView handleRequest(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
......................................................................................................
......................................................................................................
}
}
and
@Controller
@RequestMapping("/home.htm")
public class HomeController {
public ModelAndView handleRequest(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
......................................................................................................
......................................................................................................
}
}
If we want to call a controller against home.html(properly defined in dispatcher-servlet.xml) can we use any one of this interchangeably
waiting for reply
please help
thanks in advance