ModelAndView
Combines model and view in one object.
ModelAndView is a Spring MVC class used to return both:
- Model (data) : data that send to the view (like variables/messages).
- View (page) : the name of the view (JSP, Thymeleaf, etc.) to render.
Combines model and view in one object.
ModelAndView is a Spring MVC class used to return both: