modelandview has two methods
ModelAndView addAllObjects(Map modelMap)
Add all entries contained in the provided map to the model.
ModelAndView addObject(
String modelName, Object modelObject)
Add an object to the model.
i am confused by having two methods. we can use addObject() in place of addAllObjects(). right? if not please clarify how addAllObjects() is useful.