Model
Learn Model (DispatcherServlet, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Model is the M in MVC: a map of named attributes that carries data from the controller to the view. In Spring it is the interface org.springframework.ui.Model . Adding data : call model.addAttribute("name", value) in a handler method, then the view reads name . Declared as a parameter : Spring injects the model into the handler method, so you never create it yourself.