2 sgysure sgysure 于 2014.02.20 14:47 提问

初学springmvc,问题如下,求大神解答!!

类名DepartController
...
@RequestMapping(params = "depart")
public ModelAndView depart() {
System.out.println("----------------1-----------------");
return new ModelAndView("system/depart/departList");
}
....
@RequestMapping(params = "departgrid")
@ResponseBody
public List departgrid(departEntity orginfo,HttpServletRequest request, HttpServletResponse response, TreeGrid treegrid) {
System.out.println("----------------2-----------------");
...查数据库...
System.out.println("----------------3-----------------");

    return treeGrids;
}

方法都在一个类中,浏览器地址栏调用departController.do?depart

后台打印的结果顺序为 1,2,3。请问调用depart这个方法后系统是怎么调用departgrid方法的,求大神给点思路和自己的见解?

Csdn user default icon
上传中...
上传图片
插入图片