在使用struts1 中每一个action 中的方法都需要写在成public ActionForword Login(HttpServletRequers req,HttpServletResponse resp,ActionForm from,ActionMapping mapping);在Struts2 中的action 中的每一个方法需要写成public String login(){};
页面中就很容易找到某一个action中的某一个方法。
那么Spring mvc 中Controller 它都需要写成public ModelAndView handleRequest(HttpServletRequest request,
HttpServletResponse response) throws Exception {


return new ModelAndView(jsp, "txtWord", txtWord);
}。
以上方法是Controller  默认的方法,如果我在Controller  再写一个方法,需要怎么写,页面怎么可以直接跳到这个方法。