ModelAndView mav = new ModelAndView("index"); index对应的webapp目录下的jsp文件,如果要自定义jsp的存放目录,配置文件中需配置prefix和suffix。