url映射
@RequestMapping(
"/findItemsList.action")
public ModelAndView
findItemsList()
throws Exception{……}
窄化访路径
@Controller
@RequestMapping(
"/items")
public class ItemsController {……}
现在http请求方法
@RequestMapping(value=
"editItems.action",method={RequestMethod.GET,RequestMethod.POST})
public ModelAndView
editItems()
throws Exception{
……}