@RequestMapping("/show")
    public String show(Model model){
        model.addAttribute("data","message from Model!");
        return "show";
    }

    @RequestMapping("/hehe")
    public ModelAndView show(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("show");
        mv.addObject("data","message from ModelAndView!");
        return mv;
    }

以上的例子两个指向都是导向同一个定位,也就是ModelAndView和Model其实是一个意思,可以代用!