ModelAndView
Learn ModelAndView (Model & View, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes ModelAndView is a single object that holds both the view (a name or a View ) and the model data a handler wants rendered. Create it as new ModelAndView("viewName") and add data with addObject(name, value) . Return it from the handler method; DispatcherServlet then picks the view and renders it with the model.