@RequestMapping("/quick1")
public ModelAndView save1(ModelAndView modelAndView){
modelAndView.addObject("username","我是第一个");
modelAndView.setViewName("success");
System.out.println("ssss");
return modelAndView;
}
@RequestMapping("/quick")
public String save(){
System.out.println("jjjj");
return "success";
}
@RequestMapping("/quick3")
public ModelAndView save3(){
ModelAndView modelAndView = new ModelAndView();
modelAndView.addObject("username","我是第三个方法");
modelAndView.setViewName("success");
System.out.println("ssss");
return modelAndView;
|
|